Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.34.1 Message-ID: <8904141723.AA00656@riunite.aca.mcc.com> Date: 14 Apr 89 17:23:22 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30 G++ 1.34.1 issues no errors for the (obviously) ambiguous reference to an overloaded function name (as shown below). This is on a Sun3/SunOS-3.5. ------------------------------------------------------------------------ overload function; overload function_of_function; void function (char c); void function (float f); typedef void (*ptr_to_function_of_char)(char); typedef void (*ptr_to_function_of_float)(float); void function_of_function (ptr_to_function_of_float); void function_of_function (ptr_to_function_of_char); int test () { function_of_function (function); // ERROR - ambiguous } ------------------------------------------------------------------------ // Ron Guilmette - MCC - Experimental Systems Kit Project // 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740 // ARPA: rfg@mcc.com // UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg