PR middle-end/78750
* builtins.c (check_sizes): Use POINTER_TYPE_P.
* g++.dg/torture/pr78750.C: New.
From-SVN: r243498
{
/* STR is normally a pointer to string but as a special case
it can be an integer denoting the length of a string. */
- if (TREE_CODE (TREE_TYPE (str)) == POINTER_TYPE)
+ if (POINTER_TYPE_P (TREE_TYPE (str)))
{
/* Try to determine the range of lengths the source string
refers to. If it can be determined add one to it for
--- /dev/null
+// PR middle-end/78750
+// { dg-do compile }
+
+extern "C" char *strcpy (char *, const char *);
+
+void
+fn (char *p, char &as)
+{
+ strcpy (p, &as);
+}