This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
New Jacks Regressions: Constant Folding of Casts
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 20 Jul 2004 13:00:07 +0530
- Subject: 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/