This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9574: [3.4 regression] parser crash
- From: bangerth at dealii dot org
- To: fche at redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 4 Feb 2003 22:38:29 -0000
- Subject: Re: c++/9574: [3.4 regression] parser crash
- Reply-to: bangerth at dealii dot org, fche at redhat dot com, 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: parser crash
New Synopsis: [3.4 regression] parser crash
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Feb 4 22:38:28 2003
State-Changed-Why:
Confirmed. A regression on mainline, worked with 3.3.
A minimal testcase is
----------------------
struct X {
void operator[](const int& __k);
};
struct foo {
static X x;
};
struct bar {
int z;
bar () { foo::x[z]; };
};
-----------------------------
tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In constructor `bar::bar()':
x.cc:11: internal compiler error: Segmentation fault
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9574