egcs-980517 bug report

David C Binderman dcb@pncl.co.uk
Thu May 21 12:46:00 GMT 1998


Hello there,

I think the following C++ code should not compile.

typedef int (*fred)( int = 0);

fred bert;


But egcs-980517 with flags -O -Wall -ansi -pedantic compiles this program ok.

Machine is i586-linux, if that matters.

Regards
David Binderman MSc BSc    +44 1293 534 847       dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
 - Dr Stroustrup, inventor of C++




More information about the Gcc-bugs mailing list