// PR c++/56104 // { dg-options "-Wall -O2" } struct Foo { void call() {} }; template struct Wrap { inline static void call( Foo cc ) { (cc.*MEMFUNC)(); // <- warning here } }; void bar() { Wrap::call( Foo() ); }