This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9287: [parser] [3.4 regression] g++ rejects static member in-class initialization of type `const char* const'
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pinskia at physics dot uc dot edu
- Date: 13 Jan 2003 18:38:15 -0000
- Subject: Re: c++/9287: [parser] [3.4 regression] g++ rejects static member in-class initialization of type `const char* const'
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pinskia at physics dot uc dot edu, gcc-gnats at gcc dot gnu dot org
Synopsis: [parser] [3.4 regression] g++ rejects static member in-class initialization of type `const char* const'
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Mon Jan 13 10:38:14 2003
State-Changed-Why:
Not a bug.
In-class initialization of static data members is only allowed
for integral types - and not character arrays.
Yes, previous versions of gcc were less picky.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9287