OSDN Git Service

PR c++/6936
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / using4.C
1 // { dg-do compile }
2
3 // Origin: Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
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 "not a namespace" }
14         }
15 };