🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Page 154 ARM bug report

#1061
From: dcb
Date: Tue, 13 Oct 1992 19:51
31 lines
1088 bytes
Hello there,

I have ordinary gcc 2.2.2 on SUN 4 hardware.

Given the following code

class B
{
public :
    B( int i = 0 ) ;
private :
    int                 x ;
} ;

extern f( B& aB ) ;

void
g( int i )
{
    f( B( i ) ) ;       //      This should be an error.
}

then I think the compiler should produce an error message at the
commented line. I think it is disallowed to initialise a reference with
an r-value.

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
If you lie to the compiler, it will get its revenge
Technical Details
Message-ID: <9210131751.AA27711@us-es.sel.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.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!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb
From: dcb@us-es.SEl.DE
Subject: Page 154 ARM bug report
Message-ID: <9210131751.AA27711@us-es.sel.de>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 13 Oct 1992 19:51:33 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 32