This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Parse error on functor wrapped with paranthesis


Hi,
	I met a problem compiling the code below

#include <algorithm>

...
bool x = (std::less<int>()(10,20));


	On this line, g++ 3.2 generates an error message of
'parse error before numeric constant'. Without paranthesis, it is fine.
Is this a bug?

thanks for reading,

Wei


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