From 95efe6b6f4aea5255aef35e1c150d229f490af6e Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 25 May 2016 14:57:34 +0000 Subject: =?UTF-8?q?re=20PR=20c/71265=20(gcc=20ICE=20on=20x86=5F64-linux-gn?= =?UTF-8?q?u=20with=20=E2=80=9Cseg=20fault=E2=80=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gcc/c/ChangeLog | 5 +++++ gcc/c/c-decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 2e3eeb1..d74423b 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2016-05-25 Marek Polacek + + PR c/71265 + * c-decl.c (c_make_fname_decl): Don't check seen_error. + 2016-05-24 Cesar Philippidis * c-parser.c (c_parser_oacc_declare): Add support for diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 9441fbb..d7c3783 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -3989,7 +3989,7 @@ c_make_fname_decl (location_t loc, tree id, int type_dep) 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, -- cgit v1.1