summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash63.C
blob: b7056e8d85e7f0ee2a0a6f65b21995665094d8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/29729

template<typename T> void foo(T)
{
  struct A
  {
    template<int> struct B // { dg-error "local class" }
    {
      typedef B<0> C;
    }
  };
}