From 11522327310925f7a6547e072e703dd35871ea95 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 1 Mar 2003 21:46:17 +0000 Subject: 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 --- gcc/java/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/java/parse.y') diff --git a/gcc/java/parse.y b/gcc/java/parse.y index dd05c1a..5c28ce7 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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); } -- cgit v1.1