OSDN Git Service

(duplicate_decls): Don't look at TYPE_ACTUAL_ARG_TYPES if it is not
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 1995 17:30:35 +0000 (17:30 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 1995 17:30:35 +0000 (17:30 +0000)
set.

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

gcc/c-decl.c

index 8f95348..fdad007 100644 (file)
@@ -1586,7 +1586,8 @@ duplicate_decls (newdecl, olddecl)
       else if (TREE_CODE (olddecl) == FUNCTION_DECL
               && DECL_INITIAL (olddecl) != 0
               && TYPE_ARG_TYPES (oldtype) == 0
-              && TYPE_ARG_TYPES (newtype) != 0)
+              && TYPE_ARG_TYPES (newtype) != 0
+              && TYPE_ACTUAL_ARG_TYPES (oldtype) != 0)
        {
          register tree type, parm;
          register int nargs;