c++/8748: [3.3/3.4 regression] ICE in cp_expr_size at cp/cp-lang.c: 307
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Mon Jan 13 05:17:00 GMT 2003
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
More information about the Gcc-bugs
mailing list