The following program ICEs at -O2 or higher:

struct color { };
static const struct color col;
struct color * f(void)
{
    return (struct color *) &col;
}

struct color { };


-- 
           Summary: [4.3/4.4 regression] ice on struct redefinition
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonzini at gnu dot org


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

Reply via email to