[Bug java/23891] Problem folding static fields across packages

2005-09-15 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-15 14:13 --- Subject: Bug 23891 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-09-15 14:13:06 Modified files: gcc/java : ChangeLog java-tree.h jcf-parse.c

[Bug java/23891] Problem folding static fields across packages

2005-09-15 Thread mckinlay at redhat dot com
--- Additional Comments From mckinlay at redhat dot com 2005-09-15 14:19 --- Fixed checked in to HEAD, but this should also be applied to 4.0 branch because its a regression from 4.0.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23891

[Bug java/23891] Problem folding static fields across packages

2005-09-14 Thread mckinlay at redhat dot com
--- Additional Comments From mckinlay at redhat dot com 2005-09-15 00:08 --- The problem is that fold_constant_for_init() saves the current_class state when resolving other dependent constants, but not the current package (ctxp-package). If a constant in another package is referenced,