This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23891] Problem folding static fields across packages
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 15 Sep 2005 00:08:35 -0000
- Subject: [Bug java/23891] Problem folding static fields across packages
- References: <20050915000435.23891.mckinlay@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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, then when
resolving/folding the value of that constant, the wrong package context is used.
I'm testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mckinlay at redhat dot com
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-15 00:08:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23891