This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10634: in-class initialization of static data members no longer allowed
- From: giovannibajo at libero dot it
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gonz at ratloop dot com, nobody at gcc dot gnu dot org
- Date: 6 May 2003 01:50:10 -0000
- Subject: Re: c++/10634: in-class initialization of static data members no longer allowed
- Reply-to: giovannibajo at libero dot it, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gonz at ratloop dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: in-class initialization of static data members no longer allowed
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Tue May 6 01:50:09 2003
State-Changed-Why:
Not a bug. GCC does the right thing now: §9.4.2 specifies
that only static data member of const integral or const
enumeration type can be initialized at declaration time.
"unsigned char* const" is not a const integral type.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10634