[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 22 21:11:00 GMT 2008



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-09-22 21:09 -------
Reduced even further and will reproduce with both LP32 and LP64 targets (as
long as float is 32bits and double is 64bits):
typedef union
{
  char *string;
  double dval;
  float fval;
} yystype;
char *f(void)
{
  yystype tok;
  tok.dval = 0;
  return (tok.string);
}
char *f1(void)
{
  yystype tok;
  tok.fval = 0;
  return (tok.string);
}


--- CUT ---
This was most likely introduced with the value numbering of unions.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-22 21:09:59
               date|                            |


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



More information about the Gcc-bugs mailing list