OSDN Git Service

* pt.c (type_unification_real): Set input_location
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ptrmem20.C
1 // PR c++/43079
2
3 struct A {};
4
5 struct B
6 {
7   void foo() const;
8   void foo();
9 };
10
11 template<void (A::*)()> void bar(); // { dg-message "note" }
12
13 void baz()
14 {
15   bar<&B::foo>();  // { dg-error "not a valid template argument|no match" }
16   // { dg-message "candidate" "candidate note" { target *-*-* } 15 }
17 }