From: Andrew Haley Date: Tue, 6 Mar 2001 20:45:06 +0000 (+0000) Subject: typeck.c (convert_arguments): Check that we have an fndecl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1188d919d1dc1376f8d4b3abbdead38f646d777;p=gcc.git typeck.c (convert_arguments): Check that we have an fndecl. 2001-03-06 Andrew Haley * typeck.c (convert_arguments): Check that we have an fndecl. From-SVN: r40265 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 04671bd6a24..07ac4c5d9fc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2001-03-06 Andrew Haley + + * typeck.c (convert_arguments): Check that we have an fndecl. + 2001-03-05 Andrew Haley * typeck.c (convert_arguments): Don't do ellipsis conversion for diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index d572182ed78..673e7c34554 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -3207,7 +3207,7 @@ convert_arguments (typelist, values, fndecl, flags) if (TREE_CODE (TREE_TYPE (val)) == REFERENCE_TYPE) val = convert_from_reference (val); - if (DECL_BUILT_IN (fndecl) + if (fndecl && DECL_BUILT_IN (fndecl) && DECL_FUNCTION_CODE (fndecl) == BUILT_IN_CONSTANT_P) /* Don't do ellipsis conversion for __built_in_constant_p as this will result in spurious warnings for non-POD