Article View: gnu.gcc.bug
Article #1187G++, ARM Page 141
From: dcb
Date: Mon, 12 Oct 1992 08:51
Date: Mon, 12 Oct 1992 08:51
25 lines
1025 bytes
1025 bytes
Hello there,
Given the following code
extern int fred( int);
class X {
public :
void f( int = fred( 0) ) ;
} ;
void X::f( int x = fred( 0) ) {
}
and a copy of GCC 2.2.2 on Sun 4 hardware, then according to my reading
of Page 141, section 8.2.6, fourth sentence, I think the line with
the last mention of function fred should produce an error.
In fact the compiler accepts it happily.
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:
<9210120651.AA15257@us-es.sel.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcbShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb From: dcb@us-es.SEl.DE Subject: G++, ARM Page 141 Message-ID: <9210120651.AA15257@us-es.sel.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 12 Oct 1992 08:51:52 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 27