Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by dcb
Mon, 12 Oct 1992 08:51
G++, ARM Page 141
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads