diff options
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 63dbf051..94b74e3 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -12317,11 +12317,13 @@ build_super_invocation (tree mdecl) else { tree super_wfl = build_wfl_node (super_identifier_node); + tree a = NULL_TREE, t; + /* This is called after parsing is done, so the parser context won't be accurate. Set location info from current_class decl. */ tree class_wfl = lookup_cl (TYPE_NAME (current_class)); EXPR_WFL_LINECOL (super_wfl) = EXPR_WFL_LINECOL (class_wfl); - tree a = NULL_TREE, t; + /* If we're dealing with an anonymous class, pass the arguments of the crafted constructor along. */ if (ANONYMOUS_CLASS_P (DECL_CONTEXT (mdecl))) |