re PR c/39084 (ice on struct redefinition)

PR c/39084
	gcc.dg/pr39084.c: New test.

From-SVN: r144068
This commit is contained in:
Steve Ellcey 2009-02-10 16:34:30 +00:00 committed by Steve Ellcey
parent a03813c899
commit 914ff5654a
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-02-10 Steve Ellcey <sje@cup.hp.com>
PR c/39084
gcc.dg/pr39084.c: New test.
2009-02-10 Jakub Jelinek <jakub@redhat.com>
PR target/39139

View File

@ -0,0 +1,11 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct color { int i; };
static const struct color col;
struct color * f(void)
{
return (struct color *) &col;
}
struct color { int j; }; /* { dg-error "redefinition of" } */