egcs-980608 parse error

David C Binderman dcb@pncl.co.uk
Wed Jun 10 13:20:00 GMT 1998


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++




More information about the Gcc-bugs mailing list