]> gcc.gnu.org Git - gcc.git/commitdiff
hu Nov 4 16:27:01 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Mon, 29 Nov 1999 17:40:31 +0000 (17:40 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Mon, 29 Nov 1999 17:40:31 +0000 (09:40 -0800)
        * parse.y (resolve_qualified_expression_name): Handle PLUS_EXPR.
        (qualify_ambiguous_name): Likewise.

(This patch fixes the gcj PR #55.)

From-SVN: r30707

gcc/java/ChangeLog
gcc/java/parse.y

index e6b19d0540fe167d5353a78ce174cbd244a7fde4..8d00853c537515a75ba4e2533ffddfde68a7fdb3 100644 (file)
@@ -1,3 +1,8 @@
+Thu Nov  4 16:27:01 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (resolve_qualified_expression_name): Handle PLUS_EXPR.
+       (qualify_ambiguous_name): Likewise.
+       
 1999-11-24  Mark Mitchell  <mark@codesourcery.com>
 
        * except.c (emit_handlers): Zero catch_clauses after emitting them.
index 492207ec8dfd4197a591cec4e0895b364c4ac68e..d1123cb54c84aeb31bb59c194b0758ce06e2e0db 100644 (file)
@@ -6714,6 +6714,15 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
          type = QUAL_DECL_TYPE (decl);
          continue;
 
+       case PLUS_EXPR:
+         if ((decl = java_complete_tree (qual_wfl)) == error_mark_node)
+           return 1;
+         if ((type = patch_string (decl)))
+           decl = type;
+         *where_found = QUAL_RESOLUTION (q) = decl;
+         *type_found = type = TREE_TYPE (decl);
+         break;
+
        default:
          /* Fix for -Wall Just go to the next statement. Don't
              continue */
@@ -7885,7 +7894,8 @@ qualify_ambiguous_name (id)
             TREE_CODE (TREE_OPERAND (qual_wfl, 0)) == EXPR_WITH_FILE_LOCATION)
       name = EXPR_WFL_NODE (TREE_OPERAND (qual_wfl, 0));
 
-    else if (code == STRING_CST || code == CONDITIONAL_EXPR)
+    else if (code == STRING_CST || code == CONDITIONAL_EXPR 
+            || code == PLUS_EXPR)
       {
        qual = TREE_CHAIN (qual);
        qual_wfl = QUAL_WFL (qual);
This page took 0.099655 seconds and 5 git commands to generate.