[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Patrick Palka --- Fixed for gcc 6
[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 --- Comment #5 from Patrick Palka --- Author: ppalka Date: Tue Mar 22 00:30:57 2016 New Revision: 234390 URL: https://gcc.gnu.org/viewcvs?rev=234390=gcc=rev Log: Fix PR c++/70204 (ICE in non_const_var_error) gcc/cp/ChangeLog: PR c++/70204 * constexpr.c (non_const_var_error): Check DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P. gcc/testsuite/ChangeLog: PR c++/70204 * g++.dg/cpp0x/constexpr-70204a.C: New test. * g++.dg/cpp0x/constexpr-70204b.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-70204a.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-70204b.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/testsuite/ChangeLog
[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 --- Comment #4 from Patrick Palka --- (In reply to Patrick Palka from comment #3) > Reduced test case: > > int a; > > void fn1 () > { > const int x = 0 * a; > constexpr int y = x; > } Note that this one is incorrectly accepted without error by GCC 5.
[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED CC||ppalka at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org --- Comment #3 from Patrick Palka --- Reduced test case: int a; void fn1 () { const int x = 0 * a; constexpr int y = x; }
[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P4 CC||jakub at gcc dot gnu.org, ||jason at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Started with r231197.
[Bug c++/70204] [6 Regression] ICE on x86_64-linux-gnu in non_const_var_error, at cp/constexpr.c:2764
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70204 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work||4.8.2, 5.0 Keywords||error-recovery, ||ice-on-invalid-code Last reconfirmed||2016-03-13 Ever confirmed|0 |1 Summary|ICE on x86_64-linux-gnu in |[6 Regression] ICE on |non_const_var_error, at |x86_64-linux-gnu in |cp/constexpr.c:2764 |non_const_var_error, at ||cp/constexpr.c:2764 Target Milestone|--- |6.0 Known to fail||6.0 Severity|normal |minor --- Comment #1 from Andrew Pinski --- Confirmed. 5.0 did not ICE.