diff options
author | Tom Tromey <tromey@redhat.com> | 2002-04-25 01:09:47 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-04-25 01:09:47 +0000 |
commit | 9127b2da1b3a993d36180facfaee9e42a48b00f9 (patch) | |
tree | 0ad6fe510cd259b0a279343fa1424fd2bb7a211e | |
parent | b970a21d1d35e0be3f32b967f56b6219f42aeb61 (diff) | |
download | gcc-9127b2da1b3a993d36180facfaee9e42a48b00f9.zip gcc-9127b2da1b3a993d36180facfaee9e42a48b00f9.tar.gz gcc-9127b2da1b3a993d36180facfaee9e42a48b00f9.tar.bz2 |
For PR java/6425:
* parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose
EXPR_WFL_QUALIFICATION of qual_wfl.
From-SVN: r52751
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/parse.y | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 9e83445..d11cba1 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2002-04-24 Tom Tromey <tromey@redhat.com> + + For PR java/6425: + * parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose + EXPR_WFL_QUALIFICATION of qual_wfl. + 2002-04-23 Per Bothner <per@bothner.com> * expr.c (PRE_JSR): Call NOTE_LABEL for return address. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index b230abb..9ce17bf 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -11219,7 +11219,9 @@ qualify_ambiguous_name (id) { case CALL_EXPR: qual_wfl = TREE_OPERAND (qual_wfl, 0); - if (TREE_CODE (qual_wfl) != EXPR_WITH_FILE_LOCATION) + if (TREE_CODE (qual_wfl) != EXPR_WITH_FILE_LOCATION + || (EXPR_WFL_QUALIFICATION (qual_wfl) + && TREE_CODE (EXPR_WFL_QUALIFICATION (qual_wfl)) == TREE_LIST)) { qual = EXPR_WFL_QUALIFICATION (qual_wfl); qual_wfl = QUAL_WFL (qual); |