PR c++/69795
* c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
any DECL.
* g++.dg/parse/invalid1.C: New test.
From-SVN: r233855
+2016-03-01 Marek Polacek <polacek@redhat.com>
+
+ PR c++/69795
+ * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
+ any DECL.
+
2016-02-22 Martin Sebor <msebor@redhat.com>
PR middle-end/69780
if (TREE_TYPE (expr)
&& TREE_CODE (TREE_TYPE (expr)) == FUNCTION_TYPE
- && DECL_P (expr)
+ && TREE_CODE (expr) == FUNCTION_DECL
/* The intersection of DECL_BUILT_IN and DECL_IS_BUILTIN avoids
false positives for user-declared built-ins such as abs or
strlen, and for C++ operators new and delete.
+2016-03-01 Marek Polacek <polacek@redhat.com>
+
+ PR c++/69795
+ * g++.dg/parse/invalid1.C: New test.
+
2016-03-01 Richard Biener <rguenther@suse.de>
PR middle-end/70022
--- /dev/null
+// PR c++/69795
+// { dg-do compile { target c++11 } }
+// { dg-options "-w" }
+
+int foo ( foo += *[ // { dg-error "" }