------- Comment #5 from aph at gcc dot gnu dot org  2008-03-10 19:06 -------
No, it will not generate the wrong code for

  jboolean i = 1;
  i += 2;

You are wrong to assume that jboolean must behave in the same way as boolean.
It's a Java type, not a C++ type. 

Having exact conformance with C++ boolean is not important, having arrays
of boolean compile is.

The right fix *is* just make jboolean make_unsigned_type (1) on all
targets.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35469

Reply via email to