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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp82.C
blob
2bb6552f2a3ce80660db2f07c6c9d8a14001f571
1
// { dg-do assemble }
2
3
struct foo {
4
template<typename T> T bar() { return staticbar<T>( this ); }
5
template<typename T> static T staticbar( foo* ) { return 0; }
6
};
7
8
void f()
9
{
10
foo t;
11
int k = t.bar<int>();
12
}