https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110225
Bug ID: 110225 Summary: [14 regression] many ICEs after r14-1624-g28db36e2cfca1b Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:28db36e2cfca1b7106adc8d371600fa3a325c4e2, r14-1624-g28db36e2cfca1b I saw these on powerpc64 BE systems but not on LE systems. FAIL: 25_algorithms/minmax/constrained.cc (test for excess errors) FAIL: 25_algorithms/minmax/constrained.cc (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 102) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 102) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 106) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 106) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 109) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 109) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 113) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 113) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 114) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 114) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 116) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 116) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 34) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 34) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 44) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 44) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 62) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 62) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 68) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 68) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 74) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 74) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 93) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 93) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 94) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 94) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 98) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 98) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 99) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for errors, line 99) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-p1186.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth1.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth1.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth1.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth1.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth10.C -std=gnu++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth10.C -std=gnu++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth10.C -std=gnu++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth10.C -std=gnu++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth12.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth12.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth12.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth12.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth13.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth13.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth13.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth13.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth14.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth14.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth14.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth14.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth1a.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth1a.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth1a.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth1a.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2a.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2a.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2a.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2a.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2b.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2b.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth2b.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth2b.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth4.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth4.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth4.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth4.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth5.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth5.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-synth5.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-synth5.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-weak1.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-weak1.C -std=c++20 (internal compiler error: Segmentation fault) FAIL: g++.dg/cpp2a/spaceship-weak1.C -std=c++20 (test for excess errors) FAIL: g++.dg/cpp2a/spaceship-weak1.C -std=c++20 (test for excess errors) FAIL: std/time/month_day/1.cc (test for excess errors) FAIL: std/time/month_day/1.cc (test for excess errors) FAIL: std/time/month_day_last/1.cc (test for excess errors) FAIL: std/time/month_day_last/1.cc (test for excess errors) FAIL: std/time/year_month/1.cc (test for excess errors) FAIL: std/time/year_month/1.cc (test for excess errors) FAIL: std/time/year_month_day/1.cc (test for excess errors) FAIL: std/time/year_month_day/1.cc (test for excess errors) FAIL: std/time/year_month_day/4.cc (test for excess errors) FAIL: std/time/year_month_day/4.cc (test for excess errors) FAIL: std/time/year_month_day_last/1.cc (test for excess errors) FAIL: std/time/year_month_day_last/1.cc (test for excess errors) One of the ICEs: spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../xg++ -B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../ /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp2a/spaceship-synth14.C -m32 -fdiagnostics-plain-output -nostdinc++ -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/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 -std=c++20 -pedantic-errors -Wno-long-long -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/experimental/.libs -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libitm/ -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/32/libitm/.libs -lm -o ./spaceship-synth14.exe /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp2a/spaceship-synth14.C: In member function 'constexpr std::partial_ordering D::operator<=>(const D&) const': /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/cpp2a/spaceship-synth14.C:8:25: internal compiler error: Segmentation fault 0x11049a7b crash_signal /home/seurer/gcc/git/gcc-test/gcc/toplev.cc:314 0x10569f64 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/seurer/gcc/git/gcc-test/gcc/tree.h:3569 0x10569f64 outer_binding(tree_node*, cxx_binding*, bool) /home/seurer/gcc/git/gcc-test/gcc/cp/name-lookup.cc:7394 0x10569f64 decl_in_scope_p(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/name-lookup.cc:7465 0x1077717b check_return_expr(tree_node*, bool*) /home/seurer/gcc/git/gcc-test/gcc/cp/typeck.cc:11177 0x106e034b finish_return_stmt(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/semantics.cc:1244 0x104f2c7b build_comparison_op(tree_node*, bool, int) /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:1717 0x104f4a8f synthesize_method(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:1823 0x10471be7 mark_used(tree_node*, int) /home/seurer/gcc/git/gcc-test/gcc/cp/decl2.cc:5700 0x10316b53 build_over_call /home/seurer/gcc/git/gcc-test/gcc/cp/call.cc:10397 0x1032022b build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/seurer/gcc/git/gcc-test/gcc/cp/call.cc:7154 0x104f1153 do_one_comp /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:1374 0x104f1b37 build_comparison_op(tree_node*, bool, int) /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:1509 0x104f4a8f synthesize_method(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:1823 0x104fcd73 defaulted_late_check(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/method.cc:3369 0x10359d5f finish_struct_1(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/class.cc:7628 0x1035cdd3 finish_struct(tree_node*, tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/class.cc:7818 0x105b7e93 cp_parser_class_specifier /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:26219 0x105b7e93 cp_parser_type_specifier /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:19536 0x105ba5c7 cp_parser_decl_specifier_seq /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:16089 commit 28db36e2cfca1b7106adc8d371600fa3a325c4e2 (HEAD) Author: Jason Merrill <ja...@redhat.com> Date: Wed Jun 7 05:15:02 2023 -0400 c++: allow NRV and non-NRV returns [PR58487]