[Bug c++/19407] vector keyword in typedef inside template struct ignored
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 12 21:31:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-12 21:31 -------
Another example (which is rejected):
#include <stdio.h>
template < typename Val > struct S {
typedef Val vector_type __attribute__((vector_size(16)));
void pr_size() { printf ("size = %d\n", sizeof(vector_type)); }
};
int main()
{
printf ("size = %d\n", sizeof(S < float >::vector_type));
S<float> x;
x.pr_size();
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2005-01-12 21:31:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19407
More information about the Gcc-bugs
mailing list