[Bug middle-end/41282] [4.5 Regression] Revision 151394 failed to compile mplayer

jamborm at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 7 14:31:00 GMT 2009



------- Comment #6 from jamborm at gcc dot gnu dot org  2009-09-07 14:30 -------
A reduced testcase is below. It fails only on x86_64 for me as does
the preprocessed source.  SRA has different inputon i586.  However,
the bug is generic and can probably be triggered on any platform.

struct S
{
  unsigned int iu;
};

union U
{
  struct S s;
  signed int is;
};

extern signed int bar ();

struct S foo (void)
{
  union U u;

  u.is = bar ();
  return u.s;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41282



More information about the Gcc-bugs mailing list