This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]