This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/8923] [4.0/4.1/4.2 Regression] ICE when modifying a variable decleared "final static"
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2006 19:35:16 -0000
- Subject: [Bug java/8923] [4.0/4.1/4.2 Regression] ICE when modifying a variable decleared "final static"
- References: <bug-8923-3770@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from aph at gcc dot gnu dot org 2006-08-10 19:35 -------
Subject: Bug 8923
Author: aph
Date: Thu Aug 10 19:35:07 2006
New Revision: 116069
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116069
Log:
2006-08-10 Simon Martin <simartin@users.sourceforge.net>
PR java/8923
* parse.y (build_incdec): Emit an error instead of an ICE if '++'
or '--' is used with a constant operand.
(java_complete_lhs): When processing a '++' or '--' expression,
don't call java_complete_tree but java_complete_lhs, so that a
static final variable operand is never replaced by its value. This
avoids an ICE later on.
(patch_unaryop): Fixed typo in comment.
Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/parse.y
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8923