]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/template/ptrmem2.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / ptrmem2.C
1 // { dg-do compile }
2
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 31 Dec 2001 <nathan@codesourcery.com>
5
6 // We'd tsubst a pointer to member reference
7
8 struct A {};
9
10 template <typename T> T A::* Foo (); // { dg-error "reference" }
11
12 void Baz ()
13 {
14 Foo <int &> (); // { dg-error "no matching function" "" }
15 }