https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123495
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |ppalka at gcc dot gnu.org
Summary|[14/15/16 Regression] ICE: |[14/15/16 Regression] ICE:
|unexpected expression ‘(int |unexpected expression ‘(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 |nodiscard check since
| |r14-4793
Keywords|needs-bisection |
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Just
template <int N>
void foo () { ((int (*) ()) nullptr) (); }
is enough.
Started with r14-4793-gdad311874ac3b3cf4eca1c04f67cae80c953f7b8