https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117925
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-12-06 Known to work| |13.3.1 Priority|P3 |P2 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. #1 0x0000000000f5187d in cxx_eval_constant_expression (ctx=0x7fffffffcfa0, t=<cast_expr 0x7ffff69ce240>, lval=vc_prvalue, non_constant_p=0x7fffffffd0cf, overflow_p=0x7fffffffd0ce, jump_target=0x0) at ../../src/gcc/gcc/cp/constexpr.cc:8631 8631 internal_error ("unexpected expression %qE of kind %s", t, (gdb) p debug_generic_expr (t) <<< Unknown tree: cast_expr VIEW_CONVERT_EXPR<void *>(fnPtr) >>> $2 = void #0 internal_error (gmsgid=0x3d18e00 "unexpected expression %qE of kind %s") at ../../src/gcc/gcc/diagnostic-global-context.cc:513 #1 0x0000000000f5187d in cxx_eval_constant_expression (ctx=0x7fffffffcfa0, t=<cast_expr 0x7ffff69ce240>, lval=vc_prvalue, non_constant_p=0x7fffffffd0cf, overflow_p=0x7fffffffd0ce, jump_target=0x0) at ../../src/gcc/gcc/cp/constexpr.cc:8631 #2 0x0000000000f534e3 in cxx_eval_outermost_constant_expr ( t=<cast_expr 0x7ffff69ce240>, allow_non_constant=true, strict=true, manifestly_const_eval=mce_value::mce_unknown, constexpr_dtor=false, object=<tree 0x0>) at ../../src/gcc/gcc/cp/constexpr.cc:8882 #3 0x0000000000f54fbe in maybe_constant_init_1 (t=<cast_expr 0x7ffff69ce240>, decl=<tree 0x0>, allow_non_constant=true, manifestly_const_eval=false) at ../../src/gcc/gcc/cp/constexpr.cc:9393 #4 0x0000000000f55048 in maybe_constant_init (t=<cast_expr 0x7ffff69ce240>, decl=<tree 0x0>, manifestly_const_eval=false) at ../../src/gcc/gcc/cp/constexpr.cc:9411 #5 0x0000000000fad9ae in cp_get_fndecl_from_callee ( fn=<cast_expr 0x7ffff69ce240>, fold=true) at ../../src/gcc/gcc/cp/cvt.cc:1024 #6 0x0000000000fadd06 in maybe_warn_nodiscard ( expr=<call_expr 0x7ffff69cdcf0>, implicit=ICV_STATEMENT) at ../../src/gcc/gcc/cp/cvt.cc:1077