This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

New Jacks Regressions: Constant Folding of Casts


Hi,

  In the last 24 hours, the following:

    case ((int )Float.NaN == 0 ? 1 : 0): break;

now gives an error saying "Constant expression required".
This causes 4 new Jacks failures. (Note that casting NaN
to an int should give the value 0.)

I note that something like "0 == 0 ? 1 : 0" does not
give this error.

I am not able to quickly tell what could be causing
this failure.

Any insights?

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


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