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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash18.C
blob
a331dd4e5d0cfe8e2e450067de66448a43b81e99
1
// { dg-do link }
2
3
template<class T>
4
class foo {
5
T deft;
6
7
template<class U> int priv (U u, T t) { return u - t; }
8
public:
9
foo (T t) : deft (t) {}
10
11
template<class U> int pub (U u) {
12
int (foo::*fn) (U, T);
13
fn = &foo<T>::template priv<U>;
14
return (this->*fn) (u, deft);
15
}
16
};
17
18
int
19
main ()
20
{
21
foo<long> fff (5);
22
return fff.pub (3);
23
}