[Bug c/28921] vector of a pointer type does not give a warning or error that we are ignoring vector
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 1 06:45:00 GMT 2006
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-01 06:45 -------
Actually this is weird, we are applying the vector_size attribute to the inner
type instead of to the typedef type which seems more appropriate. It is
evident we are applying the attribute by adding * infront of t in the function
like:
int f(void)
{
__attribute__ ((vector_size(16))) int t1 =
(__attribute__ ((vector_size(16))) int )*t;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28921
More information about the Gcc-bugs
mailing list