http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988
Summary: constexpr on ctor invokes improper initialization
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo:
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49924
--- Comment #4 from Faisal Vali faisalv at yahoo dot com 2011-08-02 16:15:18
UTC ---
wow - that was quick - thank you Jason!!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49924
Summary: [C++0X] [constexpr] can't initialize a non-static
member array of a literal type as a constexpr
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
--- Comment #15 from faisalv at yahoo dot com 2010-04-18 12:56 ---
I had (In reply to comment #14)
*** Bug 43780 has been marked as a duplicate of this bug. ***
The DR 743 has been voted into FCD (CD2) - shouldn't this be unsuspended?
thanks!
--
http://gcc.gnu.org/bugzilla
: faisalv at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43780