Debian Codegraph @

gcc/testsuite/g++.dg/template/inherit6.C

raw
1 // Origin PR c++/47172
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 int f() const;
7 };
8
9 template <class T>
10 struct B : A { };
11
12 template <class T>
13 struct C : B<T>
14 {
15 void g();
16 };
17
18 template <class T>
19 void C<T>::g()
20 {
21 A::f();
22 }