This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-980608 parse error



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]