diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash73.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash73.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash73.C b/gcc/testsuite/g++.dg/template/crash73.C new file mode 100644 index 000000000..5c3c87dad --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash73.C @@ -0,0 +1,9 @@ +// PR c++/34100 +// { dg-do compile } + +template<typename T> struct A +{ + typedef typename T::X Y __attribute__((vector_size(8))); // { dg-error "is not a class, struct" } +}; + +A<int> a; |