c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / using14.C
blobf1d9799343b49a7462d5e27b6537f29dbe7991c3
1 // PR c++/26102
3 template <class T> struct B1 { int i(); };
5 struct B2 { int i(); };
7 template <class T> struct C : public B1<T>, public B2
9   using B2::i;
10   void f()
11   {
12     i();                        // should be accepted
13     i.i();                      // { dg-error "member" }
14   }
17 int main()
19   C<int> c;
20   c.f();