aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/typename15.C
blob: 8e26057922e396aceb94da58da0923c0c2729254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
// Special g++ Options:

template <class T, bool B> 
struct R {
  struct X {};
};

template <class T, bool B = false>
struct S : public R <T, B> {
};

template <class T> void f() 
{
  S<T>::X();
}

template void f<int>();