This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1};
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2007 22:05:04 -0000
- Subject: [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1};
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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