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/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c/c-decl.c') 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