aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-03-07 22:09:56 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-03-07 14:09:56 -0800
commit1729c265058cc349c8298bebc01b684a012bc8f6 (patch)
tree33e903d1ca8568421d6e5d2dd63b96b066a8e70f /gcc/java/parse.c
parentb0699daddf1eead3861e67808ac915f21f82dcf3 (diff)
downloadgcc-1729c265058cc349c8298bebc01b684a012bc8f6.zip
gcc-1729c265058cc349c8298bebc01b684a012bc8f6.tar.gz
gcc-1729c265058cc349c8298bebc01b684a012bc8f6.tar.bz2
re GNATS gcj/108 (Compiler doesn't check access modifiers on interface implementations)
2000-03-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (IS_INIT_CHECKED): New flag. * check-init.c (check_init): Test and set IS_INIT_CHECKED. * parse.y (patch_string): Call force_evaluation_order on the completed string concatenation tree. * expr.c (force_evaluation_order): Call force_evaluation_order on function's arguments too. (This fixes the Java PR #108: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00174.html) From-SVN: r32391
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index 5325130..c019101 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -12963,6 +12963,8 @@ patch_string (node)
/* Temporary disable forbid the use of `this'. */
ctxp->explicit_constructor_p = 0;
ret = java_complete_tree (make_qualified_primary (node, invoke, 0));
+ /* String concatenation arguments must be evaluated in order too. */
+ ret = force_evaluation_order (ret);
/* Restore it at its previous value */
ctxp->explicit_constructor_p = saved;
return ret;