This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8778: ICE on illegal initialization of non-integral static in-class constant
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sgunderson at bigfoot dot com
- Date: 2 Dec 2002 20:49:45 -0000
- Subject: Re: c++/8778: ICE on illegal initialization of non-integral static in-class constant
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sgunderson at bigfoot dot com, gcc-gnats at gcc dot gnu dot org
Old Synopsis: g++ 2.95/3.0.4/3.2/3.2.1 dies during template processing
New Synopsis: ICE on illegal initialization of non-integral static in-class constant
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Dec 2 12:49:44 2002
State-Changed-Why:
Confirmed.
The code is illegal, though: you can only initialize
_integral scalar constants_ inside the class. You try to
do this with an array, which is not allowed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8778