blob: 74713a72192be8c0780ce821c4dd143e0d15fb3d [file] [log] [blame]
// PR c++/43079
struct A {};
struct B
{
void foo() const;
void foo();
};
template<void (A::*)()> void bar(); // { dg-message "note" }
void baz()
{
bar<&B::foo>(); // { dg-error "template argument|no match|convert" }
}