------- Comment #2 from reichelt at gcc dot gnu dot org  2006-04-12 11:34 
-------
Confirmed.
Shorter testcase that crashes at -O0:

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

void foo(A a)
{
    A b = ({ a; });
}
================================

bug.cc: In function 'void foo(A)':
bug.cc:9: internal compiler error: in cp_expr_size, at cp/cp-objcp-common.c:101
Please submit a full bug report, [etc.]

The problem seems to be the statement-expression.
Just initializing "A b = a;" makes the ICE go away.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-12 11:34:16
               date|                            |
   Target Milestone|4.0.4                       |4.1.1


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

Reply via email to