diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-02-20 13:18:13 -0800 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-02-20 13:18:13 -0800 |
commit | 064a552c29257fc313b13ebe1e9bd18047b8d2c4 (patch) | |
tree | c09ac4ad4733e44a9d9739b4abb6f9399646f71d /gcc | |
parent | 9cfeea6e4e1a71b529a811bd5c21f8e231859be5 (diff) | |
download | gcc-064a552c29257fc313b13ebe1e9bd18047b8d2c4.zip gcc-064a552c29257fc313b13ebe1e9bd18047b8d2c4.tar.gz gcc-064a552c29257fc313b13ebe1e9bd18047b8d2c4.tar.bz2 |
parse.y (check_inner_class_access): Moved declaration of local `enclosing_decl_type' to the right location.
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.
(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01258.html)
From-SVN: r39933
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.y | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4a74ae7..f62ccf7 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 971a887..6cfaf65 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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)) { |