c++/5759: internal compiler error with const static template class attributes

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Sat Feb 23 12:27:00 GMT 2002


Synopsis: internal compiler error with const static template class attributes

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sat Feb 23 11:10:21 2002
State-Changed-Why:
    ICE reproduced in gcc 3.0.4 and gcc 3.1.
    
    This is illegal code.  Compiling with the Digital Unix
    C++ compiler:
    cxx: Error: a.cc, line 2: data member initializer is not allowed
    { const static char bar[] = { -1 }; };
    --------------------------^
    cxx: Info: 1 error detected in the compilation of "a.cc".
    
    It would be nice if gcc did not ICE, though.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5759



More information about the Gcc-bugs mailing list