c++/8663: [3.3 regression] ICE in cp_expr_size, at cp/cp-lang.c:307

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Thu Nov 21 09:57:00 GMT 2002

Old Synopsis: ICE in cp_expr_size, at cp/cp-lang.c:307
New Synopsis: [3.3 regression] ICE in cp_expr_size, at cp/cp-lang.c:307

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Thu Nov 21 09:00:16 2002
    The bug can be reproduced with the following code snippet:
    -----------------------snip here------------------------
    struct A
        A (const A&);
        A &operator= (const A&);
    struct B { A a; };
    B foo();
    void bar() { A a = foo().a; }
    -----------------------snip here------------------------
    Compiling this with mainline (as of 20021118) on i686-pc-linux-gnu
    I get an ICE:
    PR8663.cc: In function `void bar()':
    PR8663.cc:11: internal compiler error: in cp_expr_size, at cp/cp-lang.c:307
    Please submit a full bug report, [etc.]
    The 3.2-branch, 3.0.x and 2.95.x are not affected.


More information about the Gcc-bugs mailing list