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++/5759: internal compiler error with const static template class attributes


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


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