Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 //
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 May 2001 <[email protected]>
5
6 // Bug 2184. Using decls in templates weren't doing the right thing.
7
8 namespace N {
9 template <class T>
10 class vector {};
11 }
12
13 void g(const int&) {
14 using N::vector;
15 typedef vector<int> V;
16 }
17
18 template <class J>
19 void f(const J&) {
20 using N::vector;
21 typedef vector<int> V;
22 }
23
24 int main() {
25 f(0);
26 }