Article View: gnu.g++.bug
Article #1862BUG in G++ 1.34.1
From: Ron Guilmette
Date: Fri, 14 Apr 1989 17:23
Date: Fri, 14 Apr 1989 17:23
30 lines
1267 bytes
1267 bytes
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
Technical Details
Message-ID:
<8904141723.AA00656@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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