This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5759: internal compiler error with const static template class attributes
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gunnar at haquebright dot de, nobody at gcc dot gnu dot org
- Date: 23 Feb 2002 19:10:23 -0000
- Subject: Re: c++/5759: internal compiler error with const static template class attributes
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gunnar at haquebright dot de, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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