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

             Bug #: 54559
           Summary: [4.7 Regression], ICE in gimplify_expr, at
                    gimplify.c:7592
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: d...@gcc.gnu.org


fails with r191092, worked with r190380 on the 4.7 branch, taken from a cython
testcase, with -O[0-3]:

$ gcc -c -g -O0 -I/usr/include/python2.7 pyx.c
pyx.c: In function '__pyx_t_long_double_complex_from_parts':
pyx.c:14:16: internal compiler error: in gimplify_expr, at gimplify.c:7592
Please submit a full bug report,
with preprocessed source if appropriate.

typedef struct {
    double real;
    double imag;
} Py_complex;

typedef struct _object {
    unsigned int refcnt;
} PyObject;

typedef long double _Complex __pyx_t_long_double_complex;

static __inline__ __pyx_t_long_double_complex
__pyx_t_long_double_complex_from_parts(long double x, long double y)
{
    return x + y*(__pyx_t_long_double_complex)(__extension__ 1.0iF);
}

static __pyx_t_long_double_complex
__Pyx_PyComplex_As___pyx_t_long_double_complex(PyObject* o) {
    Py_complex cval;
    return __pyx_t_long_double_complex_from_parts(
               (long double)cval.real,
               (long double)cval.imag);
}

Reply via email to