[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 --- Comment #15 from CVS Commits --- The releases/gcc-11 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:0d7e5f90597167c36c7816f5bcf689472e8b1940 commit r11-10982-g0d7e5f90597167c36c7816f5bcf689472e8b1940 Author: Jason Merrill Date: Mon May 1 10:57:20 2023 -0400 c++: array DMI and member fn [PR109666] Here it turns out I also needed to adjust cfun when stepping out of the member function to instantiate the DMI. But instead of adding that tweak, let's unify with instantiate_body and just push_to_top_level instead of trying to do the minimum subset of it. There was no measurable change in compile time on stdc++.h. This should also resolve 109506 without yet another tweak. PR c++/106890 PR c++/109666 gcc/cp/ChangeLog: * name-lookup.c (maybe_push_to_top_level) (maybe_pop_from_top_level): Split out... * pt.c (instantiate_body): ...from here. * init.c (maybe_instantiate_nsdmi_init): Use them. * name-lookup.h: Declare them.. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/nsdmi-array2.C: New test. * g++.dg/cpp0x/nsdmi-template25.C: New test.
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 --- Comment #14 from CVS Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:c4212c41daa8584c0e63862a709d03da0c7f3dee commit r12-9811-gc4212c41daa8584c0e63862a709d03da0c7f3dee Author: Jason Merrill Date: Mon May 1 10:57:20 2023 -0400 c++: array DMI and member fn [PR109666] Here it turns out I also needed to adjust cfun when stepping out of the member function to instantiate the DMI. But instead of adding that tweak, let's unify with instantiate_body and just push_to_top_level instead of trying to do the minimum subset of it. There was no measurable change in compile time on stdc++.h. This should also resolve 109506 without yet another tweak. PR c++/106890 PR c++/109666 gcc/cp/ChangeLog: * name-lookup.cc (maybe_push_to_top_level) (maybe_pop_from_top_level): Split out... * pt.cc (instantiate_body): ...from here. * init.cc (maybe_instantiate_nsdmi_init): Use them. * name-lookup.h: Declare them.. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/nsdmi-array2.C: New test. * g++.dg/cpp0x/nsdmi-template25.C: New test.
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 Martin Liška changed: What|Removed |Added CC||fiesh at zefix dot tv --- Comment #13 from Martin Liška --- *** Bug 109785 has been marked as a duplicate of this bug. ***
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #12 from Richard Biener --- Fixed.
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 Richard Biener changed: What|Removed |Added Target Milestone|12.3|12.4 --- Comment #11 from Richard Biener --- GCC 12.3 is being released, retargeting bugs to GCC 12.4.
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 Andrew Pinski changed: What|Removed |Added CC||tocic at protonmail dot ch --- Comment #10 from Andrew Pinski --- *** Bug 109730 has been marked as a duplicate of this bug. ***
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 --- Comment #9 from CVS Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:13a269a015f888a0001af7b9ab564fadbee4a808 commit r12-9511-g13a269a015f888a0001af7b9ab564fadbee4a808 Author: Jason Merrill Date: Thu May 4 10:26:25 2023 -0400 Revert "c++: DMI in template with virtual base [PR106890]" The PR106890 patch caused PR109666; for 12.3 let's just revert it. PR c++/109666 This reverts commit 94569d91bd4c604da755b4aae84256e7fe21196a.
[Bug c++/109666] [12 Regression] Segmentation fault with std::array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109666 Jason Merrill changed: What|Removed |Added Resolution|FIXED |--- Summary|[13/14 Regression] |[12 Regression] |Segmentation fault with |Segmentation fault with |std::array using gcc 13 |std::array |since r13-6788 | Status|RESOLVED|ASSIGNED Priority|P3 |P1 Version|13.0|12.3.0 Target Milestone|13.2|12.3 --- Comment #8 from Jason Merrill --- This is also broken on the 12 branch since r12-9441-g94569d91bd4c60