This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9559: [3.4 regression] ICE with invalid initialization of a static const member
- From: bangerth at dealii dot org
- To: dv at vollmann dot ch, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 3 Feb 2003 23:52:55 -0000
- Subject: Re: c++/9559: [3.4 regression] ICE with invalid initialization of a static const member
- Reply-to: bangerth at dealii dot org, dv at vollmann dot ch, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: ICE at the definition of a static const member
New Synopsis: [3.4 regression] ICE with invalid initialization of a static const member
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Feb 3 23:52:54 2003
State-Changed-Why:
Confirmed. A shorter testcase is
-----------------
struct A {
static const int size = BOGUS;
};
const int A::size;
----------------------
tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:2: error: `BOGUS' was not declared in this scope
x.cc:4: internal compiler error: Segmentation fault
It's a mainline regression, 3.3 just gives a reasonable
error.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9559