Debian Codegraph @

gcc/testsuite/g++.dg/lookup/using48.C

raw
1 // PR c++/51190
2 // { dg-do compile }
3
4 struct A
5 {
6 int i;
7 };
8
9 template<typename> struct B
10 {
11 A* p;
12 };
13
14 template<typename T> struct C : B<T>
15 {
16 using B<T>::p;
17
18 C() { p->i; }
19
20 int i1, i2, i3, i4, i5;
21 };
22
23 C<A> c;