summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash89.C
blob: e62b57a392842600eb02d1cf0dfa1588d586c5df (plain)
1
2
3
4
5
6
7
8
// PR c++/34397

template<typename T, int = T()[0]> struct A
{
  typedef A<T> B;
};

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