sizeof overloaded function wrongly permitted ?

David C Binderman dcb@pncl.co.uk
Wed Sep 2 11:35:00 GMT 1998


Hello there,

// this should surely not compile, but it does on Linux/Alpha,
// with egcs-980824 even with -ansi -pedantic-errors

void f( int) ;
void f( double ) ;

void
g()
{
	int i = sizeof( f);
};

Regards
David C Binderman MSc BSc	+44 1293 534847		dcb@pncl.co.uk




More information about the Gcc-bugs mailing list