[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|--- |10.4
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 Martin Liška changed: What|Removed |Added Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #6 from Martin Liška --- Fixed.
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 Arseny Solokha changed: What|Removed |Added CC||asolokha at gmx dot com --- Comment #5 from Arseny Solokha --- Should this PR be closed now, or are there other fixes pending?
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 --- Comment #4 from CVS Commits --- The releases/gcc-10 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:f5cea9c5c4f8cce36963973e432a8575ef9ffd63 commit r10-9169-gf5cea9c5c4f8cce36963973e432a8575ef9ffd63 Author: Jason Merrill Date: Tue Dec 22 16:40:37 2020 -0500 c++: Fix constexpr array ICE [PR98332] The element initializer was non-constant, so its CONSTRUCTOR element ended up NULL, so unshare_constructor crashed trying to look at it. This patch fixes this in two places: First, by returning when we see a non-constant initializer; second, by not crashing on NULL. gcc/cp/ChangeLog: PR c++/98332 * constexpr.c (unshare_constructor): Check for NULL. (cxx_eval_vec_init_1): Always exit early if non-constant. gcc/testsuite/ChangeLog: PR c++/98332 * g++.dg/cpp0x/constexpr-overflow3.C: New test.
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:6b7d53a25933f4aed71d6d5134e971bd995f8973 commit r11-6320-g6b7d53a25933f4aed71d6d5134e971bd995f8973 Author: Jason Merrill Date: Tue Dec 22 16:40:37 2020 -0500 c++: Fix constexpr array ICE [PR98332] The element initializer was non-constant, so its CONSTRUCTOR element ended up NULL, so unshare_constructor crashed trying to look at it. This patch fixes this in two places: First, by returning when we see a non-constant initializer; second, by not crashing on NULL. gcc/cp/ChangeLog: PR c++/98332 * constexpr.c (unshare_constructor): Check for NULL. (cxx_eval_vec_init_1): Always exit early if non-constant. gcc/testsuite/ChangeLog: PR c++/98332 * g++.dg/cpp0x/constexpr-overflow3.C: New test.
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 --- Comment #2 from Jason Merrill --- (In reply to Martin Liška from comment #1) > Started with r6-7607-g52228180f1e50cbb. Rather, with r10-986-g9b9eb42a4168c342e5cd71b13d21e63ba7e1b7ab.
[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|[10/11 Regression] ICE in |[10/11 Regression] ICE in |unshare_constructor, at |unshare_constructor, at |cp/constexpr.c:1527 |cp/constexpr.c:1527 since ||r6-7607-g52228180f1e50cbb Last reconfirmed||2020-12-17 CC||jason at gcc dot gnu.org, ||marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- Started with r6-7607-g52228180f1e50cbb.