From f5ec0026978bd7b5da7df82287fa5ef262739d53 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 25 Apr 1995 13:30:35 -0400 Subject: [PATCH] (duplicate_decls): Don't look at TYPE_ACTUAL_ARG_TYPES if it is not set. From-SVN: r9439 --- gcc/c-decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 8f9534857fb..fdad0074557 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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;