[Bug c++/20103] [4.0/4.1 regression] ICE in create_tmp_var with C99 style struct initializer

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 13:48:00 GMT 2005


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-03-02 13:48 -------
Even shorter testcase:

======================
struct A
{
    A(const A&);
};

struct B
{
    A a;
};

void foo(B);

void bar(A &x)
{
    foo((B){x});
}
======================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20103



More information about the Gcc-bugs mailing list