g++ -vs Java boolean
Mike Stump
mrs@wrs.com
Tue Aug 31 22:45:00 GMT 1999
> Date: Tue, 3 Aug 1999 20:00:38 -0700
> From: Tom Tromey <tromey@cygnus.com>
> To: gcc-bugs@egcs.cygnus.com
> The issue is that g++ now seems to treat "false" differently in a Java
> context. In I think that the C++ "false" and the Java "false" should
> be handled identically.
:-( If you have jbool, then I think you must need jfalse.
> test.cc:35: call of overloaded `Bar(bool)' is ambiguous
> test.cc:20: candidates are: Bar::Bar(__java_boolean)
> test.cc:21: Bar::Bar(__java_short)
Yup.
More information about the Gcc-bugs
mailing list