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
/
spec16.C
blob
434dcc22e92eaa6a6ea70aace00c5d5b1fe1132f
1
// Build don't link:
2
3
template<class K>
4
struct A {
5
int foo(const K&);
6
int bar(const K&);
7
};
8
9
template<class K>
10
int
11
A<K>::bar(const K& k)
12
{
13
return(foo(k));
14
}
15
16
template<>
17
int
18
A<const char*>::foo(const char*const& k)
19
{
20
return((__SIZE_TYPE__)k);
21
}