Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / ptrmem2.C
blob1919047360a3ac6134ac01bcff7c7a2f541d1cb0
1 // { dg-do compile }
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
8 struct A {};
10 template <typename T> T A::* Foo (); // { dg-message "note" }
12 void Baz ()
14   Foo <int &> (); // { dg-error "no matching function" "" }
15   // { dg-message "candidate" "candidate note" { target *-*-* } 14 }