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]

Re: c++/8797: g++ accepts in-class initialization of non-integral static member


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


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