PR c/71265
* c-decl.c (c_make_fname_decl): Don't check seen_error.
* gcc.dg/noncompile/pr71265.c: New test.
From-SVN: r236707
+2016-05-25 Marek Polacek <polacek@redhat.com>
+
+ PR c/71265
+ * c-decl.c (c_make_fname_decl): Don't check seen_error.
+
2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
* c-parser.c (c_parser_oacc_declare): Add support for
the __FUNCTION__ is believed to appear in K&R style function
parameter declarator. In that case we still don't have
function_scope. */
- && (!seen_error () || current_function_scope))
+ && current_function_scope)
{
DECL_CONTEXT (decl) = current_function_decl;
bind (id, decl, current_function_scope,
+2016-05-25 Marek Polacek <polacek@redhat.com>
+
+ PR c/71265
+ * gcc.dg/noncompile/pr71265.c: New test.
+
2016-05-25 Nathan Sidwell <nathan@acm.org>
* gcc.c-torture/execute/921110-1.c: Fix abort decl.
--- /dev/null
+/* PR c/71265 */
+/* { dg-do compile } */
+
+void ID (ID)
+ int ID [__func__]; /* { dg-error "size of array .ID. has non-integer type" } */
+{
+}