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++.pt
/
ttp57.C
blob
7c7c9386f8a5532159461700b66043e0ec57ed02
1
// Build don't link:
2
// Origin: Alex Samuel <samuel@codesourcery.com>
3
4
namespace NS
5
{
6
7
template <class T, int V>
8
struct Base
9
{
10
};
11
12
template <class T>
13
struct Z
14
{
15
const static int value_ = false;
16
};
17
18
template <class T>
19
struct A :
20
public Base <T, Z<T>::value_>
21
{
22
};
23
24
template <class T>
25
void f(T)
26
{
27
}
28
29
}
30
31
32
template <template <class T> class U>
33
struct B
34
{
35
};
36
37
38
int
39
main ()
40
{
41
B<NS::A> ba;
42
f (ba); // Koenig lookup
43
return 0;
44
}
45