Commit 11522327 by Tom Tromey Committed by Tom Tromey

parse.y (jdep_resolve_class): Only check deprecation if we found a decl.

	* parse.y (jdep_resolve_class): Only check deprecation if we found
	a decl.

From-SVN: r63626
parent 456d8864
2003-03-01 Tom Tromey <tromey@redhat.com>
* parse.y (jdep_resolve_class): Only check deprecation if we found
a decl.
2003-02-28 Tom Tromey <tromey@redhat.com>
PR java/9695:
......
......@@ -5464,7 +5464,7 @@ jdep_resolve_class (jdep *dep)
JDEP_RESOLVED (dep, decl);
/* If there is no WFL, that's ok. We generate this warning
elsewhere. */
if (JDEP_WFL (dep) != NULL_TREE)
if (decl && JDEP_WFL (dep) != NULL_TREE)
check_deprecation (JDEP_WFL (dep), decl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment