------- Comment #10 from matz at suse dot de  2006-05-03 15:40 -------
We also got a bugreport about an ICE in get_constraint_for_component_ref,
but have a C testcase.  In the hope that it's the same reason I paste it
here:
---------------------------------
/* compile with gcc -c -O2 -o foo.o foo.c */
typedef struct {
        struct { } z;
} thang_t;
struct widget {
        struct widget *p, *q;
};
typedef struct thing {
        struct widget   x;
} thing_t;
struct {
        int             a;
        int             b;
        int             c;
        int             d;
        int             e;
        thang_t         f;
        thing_t         g;
} my_struct;
static void foo(thang_t *r)
{ splat(r);}

void function(int blaz)
{ foo(&my_struct.f);}
--------------------------------------

This fails with 4.1.x on x86_64 with -O1 and beyond.


-- 

matz at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matz at suse dot de


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

Reply via email to