gcc/testsuite/g++.old-deja/g++.pt/crash60.C
raw| 1 | // { dg-do assemble } |
| 2 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 3 | // Contributed by Nathan Sidwell 7 Nov 2000 <[email protected]> |
| 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 | } |