2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash60.C
blob60f5c4d8c6f74885fa4975bc2c7d09a254f50d5d
1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 7 Nov 2000 <nathan@codesourcery.com>
5 // We ICE'd rather than fail to instantiate.
7 template< typename SID, class SDR >
8 void k( SID sid, SDR* p,
9  void (SDR::*)
10  ( typename SID::T ) );
12 struct E { };
13 struct S { void f( int ); };
15 void f()
17   k( E(), (S*)0, &S::f );   // { dg-error "" } no match
18