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]

Re: g++ -vs Java boolean


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


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