🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #656

Re: Inherited constructors

#656
From: Doug Schmidt
Date: Fri, 01 Dec 1989 06:02
18 lines
1339 bytes
In article <8912010420.AA27527@salmon.ee.ubc.ca>, mikeb@SALMON (Mike Bolotski) writes:
>
>I don't know whether this is a g++ bug or a 2.0 feature again, as I
>don't have access to cfront.  The Lippman book seems to allow the
>behaviour, and g++ 1.35 allowed it too.  How else should an interited
>constructor be used?

This is a known bug with 1.36.2-.  As a workaround, try casting
the base initialization of Alpha, e.g.,

inline Beta::Beta(const Beta& b) : Alpha((Alpha &)b), y('z') {}

Doug
--
Any man's death diminishes me,              | schmidt@ics.uci.edu (ARPA)
Because I am involved in Mankind;           | office: (714) 856-4043
And therefore never send to know for whom the bell tolls;
It tolls for thee        -- John Donne
Technical Details
Message-ID: <257613ED.3646@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!shelby!apple!bridge2!jarthur!uci-ics!gateway
References: <8912010420.AA27527@salmon.ee.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!shelby!apple!bridge2!jarthur!uci-ics!gateway
From: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Re: Inherited constructors
Message-ID: <257613ED.3646@paris.ics.uci.edu>
Date: 1 Dec 89 06:02:21 GMT
References: <8912010420.AA27527@salmon.ee.ubc.ca>
Reply-To: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 18
In-reply-to: mikeb@SALMON.EE.UBC.CA (Mike Bolotski)