2004-03-15 Andrew Haley <aph@redhat.com>
PR java/14581
* parse.y (java_complete_lhs): Check that final variable has an
initializer.
From-SVN: r79505
+2004-03-15 Andrew Haley <aph@redhat.com>
+
+ PR java/14581
+ * parse.y (java_complete_lhs): Check that final variable has an
+ initializer.
+
2004-03-12 Andrew Haley <aph@redhat.com>
PR java/14551
TREE_OPERAND (cn, 1));
}
/* Accept final locals too. */
- else if (TREE_CODE (cn) == VAR_DECL && DECL_FINAL (cn))
+ else if (TREE_CODE (cn) == VAR_DECL && DECL_FINAL (cn)
+ && DECL_INITIAL (cn))
cn = fold_constant_for_init (DECL_INITIAL (cn), cn);
if (!TREE_CONSTANT (cn) && !flag_emit_xref)