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
7template< typename SID, class SDR >
8void k( SID sid, SDR* p,
9 void (SDR::*)
10 ( typename SID::T ) );
11
12struct E { };
13struct S { void f( int ); };
14
15void f()
16{
17  k( E(), (S*)0, &S::f );   // { dg-error "" } no match
18}
19