Commit 95efe6b6 by Marek Polacek Committed by Marek Polacek

re PR c/71265 (gcc ICE on x86_64-linux-gnu with “seg fault”)

	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
parent be650bb9
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> 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
* c-parser.c (c_parser_oacc_declare): Add support for * c-parser.c (c_parser_oacc_declare): Add support for
......
...@@ -3989,7 +3989,7 @@ c_make_fname_decl (location_t loc, tree id, int type_dep) ...@@ -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 the __FUNCTION__ is believed to appear in K&R style function
parameter declarator. In that case we still don't have parameter declarator. In that case we still don't have
function_scope. */ function_scope. */
&& (!seen_error () || current_function_scope)) && current_function_scope)
{ {
DECL_CONTEXT (decl) = current_function_decl; DECL_CONTEXT (decl) = current_function_decl;
bind (id, decl, current_function_scope, 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> 2016-05-25 Nathan Sidwell <nathan@acm.org>
* gcc.c-torture/execute/921110-1.c: Fix abort decl. * gcc.c-torture/execute/921110-1.c: Fix abort decl.
......
/* PR c/71265 */
/* { dg-do compile } */
void ID (ID)
int ID [__func__]; /* { dg-error "size of array .ID. has non-integer type" } */
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment