Commit 064a552c by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (check_inner_class_access): Moved declaration of local…

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
parent 9cfeea6e
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> 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
* parse.y (parser_check_super_interface): Don't call * parse.y (parser_check_super_interface): Don't call
......
...@@ -6789,6 +6789,7 @@ check_inner_class_access (decl, enclosing_decl, cl) ...@@ -6789,6 +6789,7 @@ check_inner_class_access (decl, enclosing_decl, cl)
tree decl, enclosing_decl, cl; tree decl, enclosing_decl, cl;
{ {
const char *access; const char *access;
tree enclosing_decl_type;
/* We don't issue an error message when CL is null. CL can be null /* 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 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) ...@@ -6798,7 +6799,7 @@ check_inner_class_access (decl, enclosing_decl, cl)
if (!decl || !cl) if (!decl || !cl)
return; return;
tree enclosing_decl_type = TREE_TYPE (enclosing_decl); enclosing_decl_type = TREE_TYPE (enclosing_decl);
if (CLASS_PRIVATE (decl)) if (CLASS_PRIVATE (decl))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment