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

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Mon Jan 13 23:26:00 GMT 2003


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



More information about the Gcc-prs mailing list