Commit 64a3ee6b by Eric Botcazou Committed by Eric Botcazou

re PR c/14114 ([unit-at-a-time] ICE in gen_subprogram_die)

	PR c/14114
	* gcc.dg/decl-5.c: New test.

From-SVN: r79012
parent ce345590
2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
PR c/14114
* gcc.dg/decl-5.c: New test.
2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/20040305-1.c: New test.
......
/* PR c/14114 */
/* Origin: <snyder@fnal.gov> */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */
/* This used to fail because the compiler thought that the
declaration of 'c' from 'b' was shadowing that from 'a'. */
void a()
{
void c();
c();
} /* { dg-bogus "error" "PR c/14114" { xfail *-*-* } } */
void b()
{
void c();
}
void c() {}
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