Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/lookup10.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 2000 Free Software Foundation
4 // Contributed by Nathan Sidwell 3 July 2000 <[email protected]>
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 *) {}
17 }
18
19 template<> void Core::Foo<> (Render_Real::Type *) {} // { dg-error "" "" { target c++98_only } }
20 }