gcc/testsuite/g++.dg/lookup/using8.C
raw| 1 | // { dg-do compile } |
| 2 | // Origin: Bill Clarke <llib at computer dot org> |
| 3 | // PR c++/11097: using declartion for a converter operator to a nested class |
| 4 | // in a base type |
| 5 | |
| 6 | template <typename T> |
| 7 | struct A |
| 8 | { |
| 9 | struct Nested {}; |
| 10 | operator Nested*(); |
| 11 | }; |
| 12 | |
| 13 | template <typename T> |
| 14 | struct B : A<T> |
| 15 | { |
| 16 | using A<T>::operator typename A<T>::Nested*; |
| 17 | }; |
| 18 | |
| 19 | template struct B<int>; |