mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-24 06:43:57 +08:00
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:
parent
456d88640c
commit
1152232731
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user