More fun with canonical types:
The following valid code snippet triggers an ICE on mainline:

===========================================================
typedef const int X __attribute((vector_size(8)));
extern const int x[] __attribute((vector_size(8)));
X x[] = {};
===========================================================

bug.cc:3: internal compiler error: canonical types differ for identical types
const int __vector__ [] and const int __vector__ []
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with vector attribute
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to