This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8748: [3.3/3.4 regression] ICE in cp_expr_size at cp/cp-lang.c: 307
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, aj at suse dot de, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sat, 11 Jan 2003 22:46:55 +0100
- Subject: Re: c++/8748: [3.3/3.4 regression] ICE in cp_expr_size at cp/cp-lang.c: 307
Alas not a duplicate.
So here's a reduced testcase
--------------------------snip here-----------------------------
struct A
{
int i;
};
struct B : A
{
virtual ~B();
};
struct C
{
B b[1];
};
void foo() { C().b[0].i; }
--------------------------snip here-----------------------------
which triggers the following ICE:
PR8748.cc: In function `void foo()':
PR8748.cc:16: internal compiler error: in cp_expr_size, at cp/cp-lang.c:304
Please submit a full bug report, [etc.]
Checked with gcc 3.3-20021230 and 3.4-20021230 (i.e. not fixed with the
new parser). gcc 3.2.1 is not affected.
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8748