[Bug c++/49988] constexpr on ctor invokes improper initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.6.2 --- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 22:24:03 UTC --- Fixed for 4.6.2.
[Bug c++/49988] constexpr on ctor invokes improper initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #1 from Faisal Vali faisalv at yahoo dot com 2011-08-05 13:59:55 UTC --- Also, changing the parameter to a pointer to an array makes the code work correctly: struct A { char data[3]; templateint ... I constexpr // NOTE: now it is a pointer to an array - not just a pointer to char A(const char (*s)[3], XI... x) : data{ (*s)[I]...} { } };
[Bug c++/49988] constexpr on ctor invokes improper initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2011.08.05 19:53:43 AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1
[Bug c++/49988] constexpr on ctor invokes improper initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #2 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 04:34:25 UTC --- Author: jason Date: Sat Aug 6 04:34:21 2011 New Revision: 177496 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177496 Log: PR c++/49988 * semantics.c (cxx_eval_array_reference): Handle failure to reduce the array operand to something we can work with. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog
[Bug c++/49988] constexpr on ctor invokes improper initialization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2011-08-06 04:38:11 UTC --- Author: jason Date: Sat Aug 6 04:38:08 2011 New Revision: 177500 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=177500 Log: PR c++/49988 * semantics.c (cxx_eval_array_reference): Handle failure to reduce the array operand to something we can work with. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/semantics.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog