aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2001-03-06 20:45:06 +0000
committerAndrew Haley <aph@gcc.gnu.org>2001-03-06 20:45:06 +0000
commitd1188d919d1dc1376f8d4b3abbdead38f646d777 (patch)
tree1428b0f601ea757fcd7a35f91ae28674a7f8e721 /gcc
parent4eaf1d5b766503ce6338677e0c365c44b125b9aa (diff)
downloadgcc-d1188d919d1dc1376f8d4b3abbdead38f646d777.zip
gcc-d1188d919d1dc1376f8d4b3abbdead38f646d777.tar.gz
gcc-d1188d919d1dc1376f8d4b3abbdead38f646d777.tar.bz2
typeck.c (convert_arguments): Check that we have an fndecl.
2001-03-06 Andrew Haley <aph@redhat.com> * typeck.c (convert_arguments): Check that we have an fndecl. From-SVN: r40265
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/typeck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 04671bd..07ac4c5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-06 Andrew Haley <aph@redhat.com>
+
+ * typeck.c (convert_arguments): Check that we have an fndecl.
+
2001-03-05 Andrew Haley <aph@redhat.com>
* typeck.c (convert_arguments): Don't do ellipsis conversion for
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index d572182..673e7c3 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