typeck.c (convert_arguments): Check that we have an fndecl.
authorAndrew Haley <aph@redhat.com>
Tue, 6 Mar 2001 20:45:06 +0000 (20:45 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 6 Mar 2001 20:45:06 +0000 (20:45 +0000)
2001-03-06  Andrew Haley  <aph@redhat.com>

* typeck.c (convert_arguments): Check that we have an fndecl.

From-SVN: r40265

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 04671bd6a2483d3de51c1151d739c51337ca9b2b..07ac4c5d9fcfc207dce628469e2ae063f6efdf05 100644 (file)
@@ -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
index d572182ed78bcbbf846fd6320d698e5ee447df44..673e7c345540e71de64ab453c335572277576445 100644 (file)
@@ -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