summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/using2.C
blob: 27ae74a0fb713eafe661313aaf9d00801563e8d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do assemble  }
// 
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 May 2001 <nathan@codesourcery.com>

// Bug 2184. Using decls in templates weren't doing the right thing.

namespace N {
  template <class T>
  class vector {};
}

void g(const int&) {
  using N::vector;
  typedef vector<int> V;
}

template <class J>
void f(const J&) {
  using N::vector;
  typedef vector<int> V;
}

int main() {
  f(0);
}