This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8797: g++ accepts in-class initialization of non-integral static member
- From: reichelt at igpm dot rwth-aachen dot de
- To: bangerth at ticam dot utexas dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 13 Jan 2003 23:26:31 -0000
- Subject: Re: c++/8797: g++ accepts in-class initialization of non-integral static member
- Reply-to: reichelt at igpm dot rwth-aachen dot de, bangerth at ticam dot utexas dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ accepts in-class initialization of non-integral static member
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Mon Jan 13 15:26:30 2003
State-Changed-Why:
Fixed with the new parser.
We now get the following error message (even without -pedantic):
bug.cc:2: error: a brace-enclosed initializer is not allowed here
bug.cc:2: error: invalid in-class initialization of static data member of
non-integral type `const int[]'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8797