[Bug middle-end/31115] [4.3 regression] libstdc++ 22_locale/num_get/get/char/2.cc 27_io/basic_ostream/inserters_arithmetic/char/6.cc

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 10 22:04:00 GMT 2007



------- Comment #7 from rguenth at gcc dot gnu dot org  2007-03-10 22:04 -------
extern void abort(void);
void foo (int e1)
{
  if (e1 < 0)
    {
      e1 = -e1;
      if (e1 >>= 4)
        {
          if (e1 >= 1 << 5)
            abort();
        }
    }
}

int main()
{
  foo(-(1<<5));
  return 0;
}


-- 


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



More information about the Gcc-bugs mailing list