https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97015
Bug ID: 97015 Summary: [11 regression] ICE in set_decl_context_in_fn, at cp/name-lookup.c:2862 after r11-3100 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc++ Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:f40866967d69079fdde293feb32d2eb52cb93cc8, r11-3100 make -k check-gcc RUNTESTFLAGS=dg.exp=obj-c++.dg/syntax-error-9.mm FAIL: obj-c++.dg/syntax-error-9.mm -fgnu-runtime (internal compiler error) FAIL: obj-c++.dg/syntax-error-9.mm -fgnu-runtime (test for excess errors) # of expected passes 3 # of unexpected failures 2 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/testsuite/obj-c++/../../xg++ -B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/obj-c++/../../ /home/seurer/gcc/git/gcc-test/gcc/testsuite/obj-c++.dg/syntax-error-9.mm -fdiagnostics-plain-output -nostdinc++ -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -fgnu-runtime -ansi -pedantic-errors -Wno-long-long -I/home/seurer/gcc/git/gcc-test/gcc/testsuite/../../libobjc -S -o syntax-error-9.s /home/seurer/gcc/git/gcc-test/gcc/testsuite/obj-c++.dg/syntax-error-9.mm:1:17: warning: cannot find interface declaration for 'SaturnDoc' /home/seurer/gcc/git/gcc-test/gcc/testsuite/obj-c++.dg/syntax-error-9.mm:2:27: error: expected ':' at end of input /home/seurer/gcc/git/gcc-test/gcc/testsuite/obj-c++.dg/syntax-error-9.mm: In function '-[SaturnDoc read:]': /home/seurer/gcc/git/gcc-test/gcc/testsuite/obj-c++.dg/syntax-error-9.mm:4: error: expected '@end' at end of input <built-in>: internal compiler error: in set_decl_context_in_fn, at cp/name-lookup.c:2862 0x1046907b set_decl_context_in_fn /home/seurer/gcc/git/gcc-test/gcc/cp/name-lookup.c:2861 0x1046907b do_pushdecl /home/seurer/gcc/git/gcc-test/gcc/cp/name-lookup.c:2995 0x1046907b pushdecl(tree_node*, bool) /home/seurer/gcc/git/gcc-test/gcc/cp/name-lookup.c:3173 0x10376bdb start_preparsed_function(tree_node*, tree_node*, int) /home/seurer/gcc/git/gcc-test/gcc/cp/decl.c:16311 0x10221b0b objc_start_function(tree_node*, tree_node*, tree_node*, tree_node*) /home/seurer/gcc/git/gcc-test/gcc/objc/objc-act.c:8623 0x1023ee37 build_module_initializer_routine /home/seurer/gcc/git/gcc-test/gcc/objc/objc-gnu-runtime-abi-01.c:948 0x1023ee37 objc_generate_v1_gnu_metadata /home/seurer/gcc/git/gcc-test/gcc/objc/objc-gnu-runtime-abi-01.c:2118 0x1022cca3 objc_write_global_declarations() /home/seurer/gcc/git/gcc-test/gcc/objc/objc-act.c:477 0x103cdedb c_parse_final_cleanups() /home/seurer/gcc/git/gcc-test/gcc/cp/decl2.c:5165 0x106c84cf c_common_parse_file() /home/seurer/gcc/git/gcc-test/gcc/c-family/c-opts.c:1210 This was on a powerpc64 BE system.