]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parse.y (jdep_resolve_class): Only check deprecation if we found a decl.
authorTom Tromey <tromey@redhat.com>
Sat, 1 Mar 2003 21:46:17 +0000 (21:46 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 1 Mar 2003 21:46:17 +0000 (21:46 +0000)
* parse.y (jdep_resolve_class): Only check deprecation if we found
a decl.

From-SVN: r63626

gcc/java/ChangeLog
gcc/java/parse.y

index 17ab8447943fd7cf5a12f633d9091fd521e3c0c8..3bd47c7311f9f8763fec2108adb7c5134ac9ece6 100644 (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:
index dd05c1a98c1f49f7437e19ddb140b1316efa8dd2..5c28ce7bd20a3b9b95daf2a6af38d7256f417e81 100644 (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);
     }