This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51373] [C++0x] ICE for static pointer to member initialized in-class


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51373

--- Comment #2 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2011-12-03 19:33:55 UTC ---
(In reply to comment #1)

> Even with the constexpr specifier that declaration should be ill-formed,
> because the class definition must be complete for an in-class static data
> member initializer. 

I just recognize that the class definition must not be complete to make the
pointer of member formation a constant expression. So, the code of the first
example should be well-formed after addition of constexpr to the static data
member.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]