OSDN Git Service

PR c++/22464
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / lookup10.C
1 // { dg-do assemble  }
2
3 // Copyright (C) 2000 Free Software Foundation
4 // Contributed by Nathan Sidwell 3 July 2000 <nathan@codesourcery.com>
5 // We'd get confused entering a namespace via an alias
6
7 namespace Outer {
8   namespace Render_Real {
9     typedef void Type;
10   }
11
12   namespace Core_Real {}  
13   namespace Core = Core_Real;
14
15   namespace Core_Real {
16     template<class T> void Foo (T *) {} // { dg-error "definition" }
17   }
18
19   template<> void Core::Foo<> (Render_Real::Type *) {} // { dg-error "" }
20 }