Testcase:

#define vector __attribute__((vector_size(16)))
vector int a = (vector int){1, 2, 0, 0};

If I used a typedef instead, it works.


-- 
           Summary: vector int a = (vector int) { 1,1,2,2} is rejected as
                    non constant
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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

Reply via email to