]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/crash60.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash60.C
1 // { dg-do assemble }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 7 Nov 2000 <nathan@codesourcery.com>
4
5 // We ICE'd rather than fail to instantiate.
6
7 template< typename SID, class SDR >
8 void k( SID sid, SDR* p, // { dg-error "no type named 'T'" }
9 void (SDR::*)
10 ( typename SID::T ) );
11
12 struct E { };
13 struct S { void f( int ); };
14
15 void f()
16 {
17 k( E(), (S*)0, &S::f ); // { dg-error "" } no match
18 }