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
* fi.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
anon7.C
blob
79cad0acb99bac6a1f38c6cae7eb32327621e31b
1
// PR c++/39560
2
// { dg-options -Wunused }
3
4
struct X { };
5
6
class Z {
7
public:
8
X* cc(int c);
9
};
10
11
class F {
12
public:
13
typedef X* (Z::*MethO)(int);
14
typedef X* (F::*MethF)(int);
15
template<MethO m>
16
X* xwrapper(int i) {
17
union {
18
Z *z;
19
F *f;
20
}; // { dg-bogus "unused" }
21
f = this;
22
return ((z->*m)(i));
23
}
24
};
25
26
F::MethF meth = &F::xwrapper<&Z::cc>;