1 // PR c++/34100
2 // { dg-do compile }
3 
4 template<typename T> struct A
5 {
6   typedef typename T::X Y __attribute__((vector_size(8)));	// { dg-error "is not a class, struct" }
7 };
8 
9 A<int> a;
10