[Bug c++/123495] [14/15/16 Regression] ICE: unexpected expression ‘(int (*)())(0) ’ of kind cast_expr in cxx_eval_constant_ex pression within template during nodiscard che ck since r14-4793

"ppalka at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123495

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |17.0
            Summary|[14/15/16/17 Regression]    |[14/15/16 Regression] ICE:
                   |ICE: unexpected expression  |unexpected expression ‘(int
                   |‘(int (*)())(0)’ of kind    |(*)())(0)’ of kind
                   |cast_expr in                |cast_expr in
                   |cxx_eval_constant_expressio |cxx_eval_constant_expressio
                   |n within template during    |n within template during
                   |nodiscard check since       |nodiscard check since
                   |r14-4793                    |r14-4793

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed on trunk so far.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.