aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash89.C
blob: f4cdaf9d9bd5dc47a0e4e279928cfb4223cc646f (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34397

template<typename T, int = T()[0]> struct A // { dg-error "subscripted" }
{
  typedef A<T> B;
};

A<int> a; // { dg-error "declaration" }

// { dg-prune-output "template argument 2 is invalid" }