3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 31 Dec 2001 <nathan@codesourcery.com>
6 // We'd tsubst a pointer to member reference
10 template <typename T> T A::* Foo (); // { dg-error "reference" }
14 Foo <int &> (); // { dg-error "no matching function" "" }
15 // { dg-message "candidate" "candidate note" { target *-*-* } 14 }