repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
template3.C
blob
761656f5a69f328bafb0759d4a5af1c2f2ed10aa
1
//Check instantiation of templates outside their namespace
2
namespace A{
3
template <class T>void g(){}
4
template <class T> struct B {
5
B(){
6
f();
7
}
8
void f()
9
{
10
g<T>();
11
}
12
};
13
}
14
15
template class A::B<int>;
16
A::B<int> s;
17
18
int main()
19
{
20
return 0;
21
}