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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem11.C
blob
a88b70660e76c34dc4f6091b89df8e5bf67b59dc
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
}