repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pmf2.C
blob
cce52b0aa8c8b1ffd4ca714316bcb1ffe12b3b39
1
// PR c++/56104
2
// { dg-options "-Wall -O2" }
3
4
struct Foo
5
{
6
void call()
7
{}
8
};
9
10
template<class MEMSIG, MEMSIG MEMFUNC>
11
struct Wrap
12
{
13
inline static void call( Foo cc )
14
{
15
(cc.*MEMFUNC)(); // <- warning here
16
}
17
};
18
19
void bar()
20
{
21
Wrap<void (Foo::*)(), &Foo::call>::call( Foo() );
22
}