1*c87b03e5Sespie // Build don't link: 2*c87b03e5Sespie // GROUPS passed arg-matching 3*c87b03e5Sespie // arg-matching file 4*c87b03e5Sespie // Message-Id: <14t4tyk@rpi.edu> 5*c87b03e5Sespie // From: jorgej@colossus.cs.rpi.edu (Joaquim Jorge) 6*c87b03e5Sespie // Subject: g++ 2.3.3 Doesn't check function types in initializer lists ? 7*c87b03e5Sespie // Date: Tue, 9 Mar 1993 21:39:08 GMT 8*c87b03e5Sespie 9*c87b03e5Sespie typedef void (*FuncPtr)(int a, float b); 10*c87b03e5Sespie class Amazing { int a; int b; int c; }; 11*c87b03e5Sespie 12*c87b03e5Sespie extern void *Wrong1(char *a, int *b); 13*c87b03e5Sespie extern void *Wrong2(Amazing a, int *b); 14*c87b03e5Sespie extern void *Wrong3(char *a, Amazing *b); 15*c87b03e5Sespie extern void Wrong4(char *a, int *b); 16*c87b03e5Sespie extern Amazing Wrong5(char *a, int *b); 17*c87b03e5Sespie 18*c87b03e5Sespie FuncPtr p = &Wrong5;// ERROR - .* 19*c87b03e5Sespie FuncPtr func_ptr_array[] = { &Wrong1, &Wrong2, &Wrong3, &Wrong4, &Wrong5, 0 };// ERROR - .* 20*c87b03e5Sespie 21