OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* class.c (instantiate_type): Don't treat template-ids that don't
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ptrmem1.C
1
class foo
2
{
3
public:
4
template<class T>
5
T bar() { return 7; }
6
};
7
8
int
9
main()
10
{
11
foo f;
12
13
int (foo::*s)() = &foo::template bar<int>;
14
if ((f.*s)() == 7)
15
return 0;
16
else
17
return 1;
18
}