1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/40684
3 // { dg-options "-std=c++0x" }
9 template <typename S, typename T, typename U, typename S::v = &S::v::s>
11 foo (S c, T t, U u) // { dg-message "note" }
23 A b = foo (this, a, t); // { dg-error "no matching function" }
24 // { dg-message "candidate" "candidate note" { target *-*-* } 23 }