🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Fri, 14 Apr 1989 17:23
BUG in G++ 1.34.1
#1862
Author: Ron Guilmette
Date: Fri, 14 Apr 1989 17:23
30 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads