Debian Codegraph @

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

raw
1 // PR c++/116320
2 // { dg-do compile { target c++11 } }
3
4 template<class T> struct C;
5 template<class T> using C_ptr = C<T>*;
6
7 struct B { int m; using B_typedef = B; };
8
9 template<class T>
10 struct C : B {
11 void f(C_ptr<T> c) {
12 c->B::m;
13 c->B_typedef::m;
14 }
15 };
16
17 template struct C<int>;