This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-980608 parse error
- To: egcs-bugs at cygnus dot com
- Subject: egcs-980608 parse error
- From: dcb at pncl dot co dot uk (David C Binderman)
- Date: Wed, 10 Jun 1998 20:55:10 +0100 (BST)
Hello there,
For the following source code,
struct S
{
};
int operator + ( const S &);
int operator - ( const S &);
void
f()
{
if (&operator + < &operator - )
;
}
g++ 2.7.2.1 compiles the code ok on Linux/i586, but all egcs from May
and June get
jun10.cc: In function `void f()':
jun10.cc:12: Error: parse error before `)'
jun10.cc:14: Error: confused by earlier errors, bailing out
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++