2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / using2.C
blob27ae74a0fb713eafe661313aaf9d00801563e8d2
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 May 2001 <nathan@codesourcery.com>
6 // Bug 2184. Using decls in templates weren't doing the right thing.
8 namespace N {
9   template <class T>
10   class vector {};
13 void g(const int&) {
14   using N::vector;
15   typedef vector<int> V;
18 template <class J>
19 void f(const J&) {
20   using N::vector;
21   typedef vector<int> V;
24 int main() {
25   f(0);