🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Ron Guilmette Thu, 27 Apr 1989 18:34
Re: G++ 1.34.2 overloaded virtual functions
#1917
Author: Ron Guilmette
Date: Thu, 27 Apr 1989 18:34
27 lines
1245 bytes
Recently, arisia!wedekind@lll-winken.llnl.gov  (Jerry Wedekind) wrote:
|G++ seems to have a bug with overloaded virtual functions.  In the test case:
|
|    class A {
|    public:
|        virtual void XXX (int);
|    };
|
|    class B : public A {
|    public:
|        void XXX (int);
|        void XXX (char);
|    };
|
|It complains:
|
|    "test.h:9: conficting specification deriving virtual function 'void B::XXX (float)'

I have mentioned this to Michael T. and said that I believe it to be a bug.
Perhaps the fact that other C++ compilers/translators accept this without
error will serve as some confirmation of my view.

// 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
Re: G++ 1.34.2 overloaded virtual functions
#1912
Author: Jordan Hayes
Date: Thu, 27 Apr 1989 23:22
15 lines
1148 bytes
Ron Guilmette <rfg@MCC.COM> writes:

	I have mentioned this to Michael T. and said that I believe it
	to be a bug.  Perhaps the fact that other C++
	compilers/translators accept this without error will serve as
	some confirmation of my view.

Wow, that'd be neat, but like where does it say that this is correct
behavior?  Just because some Joe Compiler accepts it and "does the
right thing" with it doesn't *necessarily* mean that it's correct for
the language.  Can anyone quote chapter and verse about this subject?
(yes, i've been bitten by this same problem, and was annoyed to have to
declare two virtuals, but is it _correct_ C++?).

/jordan
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