Testcase: #define vector __attribute__((__vector_size__(16) )) vector signed int v1[]={0,1,2,3,4,5,6,7};
The reason why I am saying this is valid code is two fold, one the C/C++ Language extension for CBEA says this is valid code and two the C++ front-end accepts this. -- Summary: rejects vector int a[] = {1,1,1,1,1}; Product: gcc Version: 4.3.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=31499