OSDN Git Service

2001-02-20 Alexandre Petit-Bianco <apbianco@redhat.com>
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2001 21:18:13 +0000 (21:18 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2001 21:18:13 +0000 (21:18 +0000)
        * parse.y (check_inner_class_access): Moved declaration of local
        `enclosing_decl_type' to the right location.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01258.html)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39933 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4a74ae7..f62ccf7 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-20  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * parse.y (check_inner_class_access): Moved declaration of local
+       `enclosing_decl_type' to the right location.
+
 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
 
        * parse.y (parser_check_super_interface): Don't call 
index 971a887..6cfaf65 100644 (file)
@@ -6789,6 +6789,7 @@ check_inner_class_access (decl, enclosing_decl, cl)
      tree decl, enclosing_decl, cl;
 {
   const char *access;
+  tree enclosing_decl_type;
 
   /* We don't issue an error message when CL is null. CL can be null
      as a result of processing a JDEP crafted by source_start_java_method
@@ -6798,7 +6799,7 @@ check_inner_class_access (decl, enclosing_decl, cl)
   if (!decl || !cl)
     return;
 
-  tree enclosing_decl_type = TREE_TYPE (enclosing_decl);
+  enclosing_decl_type = TREE_TYPE (enclosing_decl);
 
   if (CLASS_PRIVATE (decl))
     {