OSDN Git Service

* decl.c (decls_match): Assert that the arguments are decls.
[pf3gnuchains/gcc-fork.git] / gcc / cp / decl.c
index 7daac5f..ef43dbf 100644 (file)
@@ -952,6 +952,8 @@ decls_match (tree newdecl, tree olddecl)
        interested in their types.  */
     return 0;
 
+  gcc_assert (DECL_P (newdecl));
+
   if (TREE_CODE (newdecl) == FUNCTION_DECL)
     {
       tree f1 = TREE_TYPE (newdecl);