[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-06 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #3 from Jason Merrill 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=gcc&view=rev&rev=177500 Log: PR c++/49988 * semantics.c (cxx_eval_array_

[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #2 from Jason Merrill 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=gcc&view=rev&rev=177496 Log: PR c++/49988 * semantics.c (cxx_eval_array_

[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/49988] constexpr on ctor invokes improper initialization

2011-08-05 Thread faisalv at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988 --- Comment #1 from Faisal Vali 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]; template constexpr // NOTE: now it is a pointer to an arr