Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / ptrmem20.C
blobdee3c629a70dc32cac17e5a98032c516b004fd9d
1 // PR c++/43079
3 struct A {};
5 struct B
7   void foo() const;
8   void foo();
9 };
11 template<void (A::*)()> void bar(); // { dg-message "note" }
13 void baz()
15   bar<&B::foo>();  // { dg-error "not a valid template argument|no match" }
16   // { dg-message "candidate" "candidate note" { target *-*-* } 15 }