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
* gcc.dg/tm/memopt-6.c: Cleanup tmedge tree dump.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem11.C
1
// PR c++/18407
2
3
template <typename Klasse>
4
struct the_base{
5
template <void (Klasse::*Fn)()> void foo() { }
6
};
7
8
template <typename T>
9
struct derivedT: the_base<derivedT<T> > {
10
typedef the_base<derivedT<T> > parent;
11
void ice(){
12
this->parent::template foo< &derivedT<T>::ice>();
13
}
14
};
15
16
int main() {
17
derivedT<int> dT;
18
dT.ice();
19
}