Take the following function, we ICE at -O1 now:

_Complex float f(void);
void *a;

_Complex float g(void)
{
  _Complex float x = f();
  __imag__ x = 1.0;
  if (__imag__ x != 1.0)
    {
      a = &x;
    }
  return x;
}

The ICE we get is:
vi t.c.t.c: In function ?g?:
t.c:5: error: Statement makes a memory store, but has no V_MAY_DEFS nor 
V_MUST_DEFS
REALPART_EXPR <x.0_6> = x$real_11;
t.c:5: internal compiler error: verify_ssa failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is most likely the same as the ICE referenced in:
<http://gcc.gnu.org/ml/gcc-patches/2005-06/msg01497.html>.

-- 
           Summary: [4.1 Regression] Statement makes a memory store ..,
                    complex
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,rth at gcc dot gnu dot
                    org


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

Reply via email to