Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!gem.mps.ohio-state.edu!usc!orion.oac.uci.edu!uci-ics!news From: schmidt@glacier.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.g++.bug Subject: Re: front end bug Message-ID: <1989Oct12.174046.8055@paris.ics.uci.edu> Date: 12 Oct 89 17:40:46 GMT References: <8910121640.AA12659@grn.umb.edu> Sender: news@paris.ics.uci.edu (Network News) Reply-To: schmidt@glacier.ics.uci.edu (Doug Schmidt) Distribution: gnu Organization: University of California, Irvine - Dept of ICS Lines: 28 In-reply-to: kwn@grn.umb.edu (Kenneth Newman) In article <8910121640.AA12659@grn.umb.edu>, kwn@grn (Kenneth Newman) writes: > > The following program run with version 1.35.0 on a Sun 3/140-M8 >using Sun UNIX 4.2 Release 3.4 printed "E" not "D". >#include >class D { > public: > void f(){cout << "D\n";} > int y; >}; >class E : public D{ > public: > void f(){cout << "E\n";} >}; > >main(){ >E w; >w.D::f(); >} This appears to be fixed in the g++ 1.36 beta. Doug -- Master Swordsman speak of humility; | schmidt@ics.uci.edu (ARPA) Philosophers speak of truth; | office: (714) 856-4034 Saints and wisemen speak of the Tao of no doubt; The moon, sun, and sea speaks for itself. -- Hiroshi Hamada