Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.dg / template / crash89.C
1 // PR c++/34397
2
3 template<typename T, int = T()[0]> struct A // { dg-error "subscripted" }
4 {
5   typedef A<T> B;
6 };
7
8 A<int> a; // { dg-error "declaration" }
9
10 // { dg-prune-output "template argument 2 is invalid" }