------- Comment #1 from jakub at gcc dot gnu dot org  2007-04-19 12:40 -------
struct S
{
  long int l;
  void *m;
};

int
foo (struct S *x)
{
  unsigned long a;
  a = x->l;
  if (a <= ((void *) 0))
    x->m = 0;
  return 0;
}

ICEs at -O2 on both x86_64-linux and ppc-linux.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.3
      Known to work|                            |3.4.6 4.2.0 4.3.0
            Summary|[4.1 regression]            |[4.1 regression] ICE in
                   |                            |compare_values


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

Reply via email to