------- Comment #3 from reichelt at gcc dot gnu dot org  2007-12-27 20:06 
-------
Confirmed. Reduced testcase that crashes on i686-pc-linux-gnu when compiled
with "-march=i386 -O" or "-march=i486 -O":

===========================================
struct A
{
  __complex__ double c;
};

struct B
{
  A a;
  B(A x) : a(x) {}
  void foo();
};

void bar()
{
  B b = A();
  B(b).foo();
}
===========================================

The bug is present since GCC 4.1.0, but seems to be fixed on mainline.


-- 

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|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.1.0 4.1.2 4.2.0 4.2.2
      Known to work|                            |4.0.0 4.0.4 4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-27 20:06:31
               date|                            |
            Summary|-O1 and -O2 options cause   |[4.1/4.2 regression] ICE
                   |internal compiler error     |with __complex__ double
   Target Milestone|---                         |4.2.3


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

Reply via email to