OSDN Git Service

* parse.y (jdep_resolve_class): Only check deprecation if we found
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Mar 2003 21:46:17 +0000 (21:46 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Mar 2003 21:46:17 +0000 (21:46 +0000)
a decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63626 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 17ab844..3bd47c7 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 dd05c1a..5c28ce7 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);
     }