1 // PR c++/85545 2 // { dg-do compile { target c++11 } } 3 4 struct A 5 { 6 void foo() noexcept; 7 }; 8 9 template<typename T> void bar(T); 10 baz()11 void baz() 12 { 13 bar(static_cast<void(A::*)()>(&A::foo)); 14 } 15