summaryrefslogtreecommitdiffstats
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-24 15:39:17 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-24 15:39:17 +0000
commita87a7c2de89035c2d1e75507ef29e45ebe29e20a (patch)
tree716092990a2a64abdb5612e435b1a99a3f1f51b0 /gcc/java/expr.c
parentd19c825d230669d1a99ad2185f774361fbccb6aa (diff)
downloadppe42-gcc-a87a7c2de89035c2d1e75507ef29e45ebe29e20a.tar.gz
ppe42-gcc-a87a7c2de89035c2d1e75507ef29e45ebe29e20a.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 33d3afdd3c0..33c048fe5e4 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -3178,9 +3178,6 @@ force_evaluation_order (tree node)
{
tree arg, cmp;
- if (!TREE_OPERAND (node, 1))
- return node;
-
arg = node;
/* Position arg properly, account for wrapped around ctors. */
@@ -3189,7 +3186,11 @@ force_evaluation_order (tree node)
arg = TREE_OPERAND (arg, 1);
- /* Not having a list of argument here is an error. */
+ /* An empty argument list is ok, just ignore it. */
+ if (!arg)
+ return node;
+
+ /* Not having a list of arguments here is an error. */
if (TREE_CODE (arg) != TREE_LIST)
abort ();
OpenPOWER on IntegriCloud