aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2004-07-26 11:15:09 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2004-07-26 11:15:09 +0000
commit6fd876ac867d5564d80f1de715a147a1fc8a2a4e (patch)
treee1d3b9c741f3566004d9b2ab17ffe7350550275d /gcc
parent615cbd95bd73d35bdf41475f60243f9d9fefc5f4 (diff)
downloadgcc-6fd876ac867d5564d80f1de715a147a1fc8a2a4e.zip
gcc-6fd876ac867d5564d80f1de715a147a1fc8a2a4e.tar.gz
gcc-6fd876ac867d5564d80f1de715a147a1fc8a2a4e.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.y4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index bb5aaa5..8962a64 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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'.
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)))