https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104079
Bug ID: 104079
Summary: internal compiler error: in nothrow_spec_p, at
cp/except.c:1192
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: turningtides at outlook dot de
Target Milestone: ---
Created attachment 52214
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52214&action=edit
gcc -c main.cpp main.o
main.cpp:6:46: internal compiler error: in nothrow_spec_p, at cp/except.c:1192
6 | void SNFP( void *n ) noexcept(noexcept(cn( n, n )))
| ~~^~~~~~~~
0x5fcb2b nothrow_spec_p(tree_node const*)
../../src/gcc/cp/except.c:1192
0x5fcb2b nothrow_spec_p(tree_node const*)
../../src/gcc/cp/except.c:1184
0x108ec56 set_flags_from_callee(tree_node*)
../../src/gcc/cp/call.c:334
0x108b529 build_call_a(tree_node*, int, tree_node**)
../../src/gcc/cp/call.c:371
0x108ad76 build_cxx_call(tree_node*, int, tree_node**, int, tree_node*)
../../src/gcc/cp/call.c:10057
0x1073257 build_over_call
../../src/gcc/cp/call.c:9561
0x1134b3c build_new_method_call_1
../../src/gcc/cp/call.c:10814
0x1134696 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
../../src/gcc/cp/call.c:10890
0x106298f finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**,
bool, bool, int)
../../src/gcc/cp/semantics.c:2751
0x10da2d2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/gcc/cp/pt.c:20485
0x10db12c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/gcc/cp/pt.c:20012
0x1014712 instantiate_non_dependent_expr_internal(tree_node*, int)
../../src/gcc/cp/pt.c:6342
0x1014712 instantiate_non_dependent_expr_sfinae(tree_node*, int)
../../src/gcc/cp/pt.c:6370
0x1014712 instantiate_non_dependent_expr_sfinae(tree_node*, int)
../../src/gcc/cp/pt.c:6354
0x1014712 build_noexcept_spec(tree_node*, int)
../../src/gcc/cp/except.c:1240
0xfb9ee9 cp_parser_late_noexcept_specifier
../../src/gcc/cp/parser.c:26836
0xfb9ee9 cp_parser_class_specifier_1
../../src/gcc/cp/parser.c:25148
0xfa344c cp_parser_class_specifier
../../src/gcc/cp/parser.c:25235
0xfa344c cp_parser_type_specifier
../../src/gcc/cp/parser.c:18478
0xfa052c cp_parser_decl_specifier_seq
../../src/gcc/cp/parser.c:15089
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.