OSDN Git Service

2012-04-15 Fabien ChĂȘne <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / using5.C
1 // { dg-do compile }
2
3 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4
5 // PR c++/10554: ICE for member using declaration with failed
6 // scope name lookup.
7
8 template <typename> struct A
9 {
10     typedef A X;
11     void foo();
12 };
13
14 template <typename T> struct B : A<T>
15 {
16     using X::foo; // { dg-error "declared|nested-name-specifier|non-member" }
17 };