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
/
memtemp82.C
blob
d4bb37aa410933b9c0be36294ebda8fd7d3c84a8
1
// Build don't link:
2
// excess errors test
3
4
struct foo {
5
template<typename T> T bar() { return staticbar<T>( this ); }
6
template<typename T> static T staticbar( foo* ) { return 0; }
7
};
8
9
void f()
10
{
11
foo t;
12
int k = t.bar<int>();
13
}