🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

gnu 1.39 & gnu 2.2.2 bug report

#12
From: dcb
Date: Thu, 29 Oct 1992 18:56
26 lines
1176 bytes
Hello there,

Given the following code on Sun 4 hardware

class Tag {
public:
	Tag(int i):value(i){}
	int value;
};

extern const Tag myTag;
extern const Tag myTag=9;
extern const Tag myTag;

Then both gnu 1.39 and gnu 2.2.2 produce a compile time error for the 
last line.

I have checked the ARM, I have checked with cfront 2.1 & I have checked
with cfront 3.0 and they all agree its legal code.

Regards

David C Binderman     Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
D-7000 Stuttgart 40, Germany      dcb@us-es.sel.de   Tel: +49 711 821 3841
I'm on a mission from God to get the German banking system out of 1965 and
into 1975.
Technical Details
Message-ID: <9210291656.AA13834@us-es.sel.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!mrccrc!doc.ic.ac.uk!aixssc.uk.ibm.com!yktnews!admin!newsgate.watson.ibm.com!news.ans.net!malgudi.oar.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!mrccrc!doc.ic.ac.uk!aixssc.uk.ibm.com!yktnews!admin!newsgate.watson.ibm.com!news.ans.net!malgudi.oar.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb
From: dcb@us-es.SEl.DE
Subject: gnu 1.39 & gnu 2.2.2 bug report
Message-ID: <9210291656.AA13834@us-es.sel.de>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 29 Oct 1992 18:56:41 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 28