gcc/testsuite/g++.dg/lookup/using4.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Origin: Richard Guenther <[email protected]> |
| 4 | |
| 5 | // PR c++/9432: ICE in validate_nonmember_using_decl when decl is a |
| 6 | // SCOPE_REF. |
| 7 | |
| 8 | template <class T> struct Foo; |
| 9 | template <class T> |
| 10 | struct Bar : public Foo<T> { |
| 11 | void foo() |
| 12 | { |
| 13 | using Foo<T>::i; // { dg-error "member at non-class scope" "" { target c++17_down } } |
| 14 | } |
| 15 | }; |