aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/spec8.C
blob: 26d207b81315565b47f18bbfbf089dd936854a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }

// Specialization of member class template.

template<class T1> struct A
{
  template<class T2> struct B {};
}; 

template <> template <> struct A<int>::B<int> {};
template <> template <class U> struct A<int>::B {}; // { dg-error "specialization" }