Testcase:
typedef char *cptr;
char *a;
__attribute__ ((vector_size(16))) cptr t;
int f(void)
{
__attribute__ ((vector_size(16))) int t1 =
(__attribute__ ((vector_size(16))) int )t;
}
We get an error about converting t to a vector int but t looks to me a vector
of a char pointer. This happens with both the C and C++ front-ends.
--
Summary: vector of a pointer type does not give a warning or
error that we are ignoring vector
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: diagnostic
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=28921