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
This commit is contained in:
Tom Tromey 2003-03-01 21:46:17 +00:00 committed by Tom Tromey
parent 456d88640c
commit 1152232731
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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:

View File

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