This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
980531 wrongly compiles a file
- To: egcs-bugs at cygnus dot com
- Subject: 980531 wrongly compiles a file
- From: dcb at pncl dot co dot uk (David C Binderman)
- Date: Wed, 3 Jun 1998 21:35:35 +0100 (BST)
Hello there,
In G++ test suite for 980531, file g++.ext/default.C, I think
should not compile, but egcs-980531 compiles it, with flags -g -O
-ansi -pedantic-errors.
My reading of ISO C++ section 8.3.6 says that default arguments
are only allowed in a function declaration.
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++