summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash48.C
blob: 6aa3aa3ed26b4cc66452b89c282336d5dfe858e3 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/11471
// Origin:  <bagnara@cs.unipr.it>
// { dg-do compile }

template<typename T> struct A
{
  typedef typename T::X X;
};

template<typename T> A<T>::X::X() {} // { dg-error "no type|invalid use|not a type|dependent" }