gcc/testsuite/g++.dg/template/using9.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Origin: [email protected] |
| 4 | |
| 5 | // PR c++/17154: Using declaration in partial class template specialization. |
| 6 | |
| 7 | template <int numrows, class T> struct A { void test_A() {} }; |
| 8 | template <int numrows, class T> struct B {}; |
| 9 | template <class T> struct B <3, T> : public A <3, T> { |
| 10 | using A <3, T>::test_A; |
| 11 | void test_B_spec() { test_A(); } |
| 12 | }; |