aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y3
1 files changed, 2 insertions, 1 deletions
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))
{