re PR java/5368 (gcj-3.0.3 segfaults with 20 line program)
authorMark Wielaard <mark@klomp.org>
Mon, 25 Mar 2002 19:23:37 +0000 (19:23 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Mon, 25 Mar 2002 19:23:37 +0000 (19:23 +0000)
Fix for PR java/5368:
* parse.y (resolve_qualified_expression_name): Use decl not field_decl
when printing error message.

From-SVN: r51327

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

index 64e8479f880785aff80634d8556754d1708cbf89..4d9b6962c8101c95266499e897507163460b6fd3 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-22  Mark Wielaard  <mark@klomp.org>
+
+       Fix for PR java/5368:
+       * parse.y (resolve_qualified_expression_name): Use decl not field_decl
+       when printing error message.
+
 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * decl.c (maybe_build_cleanup): Remove.
index eecb8add7f845671dd67b2ee730306d0efbba9fd..8cb595e33d99f53d790b897673b1fd758ee3622c 100644 (file)
@@ -9804,7 +9804,7 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
                    (qual_wfl, "Attempt to reference field `%s' in `%s %s'",
                     IDENTIFIER_POINTER (EXPR_WFL_NODE (qual_wfl)),
                     lang_printable_name (type, 0),
-                    IDENTIFIER_POINTER (DECL_NAME (field_decl)));
+                    IDENTIFIER_POINTER (DECL_NAME (decl)));
                  return 1;
                }