🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: g++ 2.2.2 namespace bug(?)

#963
From: Mike Stump
Date: Tue, 15 Sep 1992 07:02
35 lines
1443 bytes
This problem should not exist in the next release of gcc.

> Date: Wed, 1 Jul 92 11:52:12 MST
> From: muts@fss.fokker.nl (Peter Mutsaers)
> Message-Id: <9207010952.AA04442@fss.fokker.nl>
> To: bug-g++@prep.ai.mit.edu

> When compiling something this:

> class a {
> enum { no_break, pre_break, in_break, post_break };
> int ha;
> };

> class b {
> int ha;
> };

> class c: public a, public b {
> int ha;
> };

> main () {}

> I get the following error message:
> t.c:11: request for member `ha' is ambiguous

> I get this only when the enum occurs in the definition of class a.
> More general this occurs with multiple inheritance only, where from
> both parental sides the same member ("ha" in this case) is defined,
> and in one of the parents an enum within the class occurs.

> In fact this prevents me from compiling interviews 3.1 at the moment.
> Hope that a g++ expert can solve it. Could any replies be directed to
> my email address as well, as I do not read g++-bug. Thanks.
Technical Details
Message-ID: <9209150702.AA24137@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!mrs

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!mrs
From: mrs@cygnus.com (Mike Stump)
Subject: Re:  g++ 2.2.2 namespace bug(?)
Message-ID: <9209150702.AA24137@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 15 Sep 1992 07:02:13 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 36