summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/elab1.C
blob: 778150f06dc92ca32600417b7c4392e3da45dc46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2003 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile }

// Elaborate type specifier of class template

template <class T> class A {
  class B;
};

template <class T> class A<T>::B {
  friend class A;
};