parse.y (build_super_invocation): Adjust declaration order to avoid declaration after statement.

* parse.y (build_super_invocation): Adjust declaration order to
	avoid declaration after statement.

From-SVN: r85189
This commit is contained in:
Hans-Peter Nilsson 2004-07-26 11:15:09 +00:00 committed by Hans-Peter Nilsson
parent 615cbd95bd
commit 6fd876ac86
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-26 <hp@bitrange.com>
* parse.y (build_super_invocation): Adjust declaration order to
avoid declaration after statement.
2004-07-25 Bernardo Innocenti <bernie@develer.com>
* decl.c: Rename all identifiers named `class' to `cl'.

View File

@ -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)))