aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-09-24 15:39:17 +0000
committerTom Tromey <tromey@gcc.gnu.org>2004-09-24 15:39:17 +0000
commit90424847a67993e2cb9b0832371f45b2b64d9048 (patch)
tree716092990a2a64abdb5612e435b1a99a3f1f51b0 /gcc/java/parse.y
parent17c08c32dedfe91dbd6cea4f24d9216630f9aaa9 (diff)
downloadgcc-90424847a67993e2cb9b0832371f45b2b64d9048.zip
gcc-90424847a67993e2cb9b0832371f45b2b64d9048.tar.gz
gcc-90424847a67993e2cb9b0832371f45b2b64d9048.tar.bz2
re PR java/16789 (ICE in force_evaluation_order() on valid code)
PR java/16789: * parse.y (resolve_qualified_expression_name): Set CAN_COMPLETE_NORMALLY on first call when chaining static calls. * expr.c (force_evaluation_order): Check for empty argument list after stripping COMPOUND_EXPR. From-SVN: r88045
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index b6cedbf..2287d90 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -9607,6 +9607,9 @@ resolve_qualified_expression_name (tree wfl, tree *found_decl,
forcoming function's argument. */
if (previous_call_static && is_static)
{
+ /* We must set CAN_COMPLETE_NORMALLY for the first call
+ since it is done nowhere else. */
+ CAN_COMPLETE_NORMALLY (decl) = 1;
decl = build2 (COMPOUND_EXPR, TREE_TYPE (*where_found),
decl, *where_found);
TREE_SIDE_EFFECTS (decl) = 1;