[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:08:00 GMT 2007
------- Comment #9 from rguenth at gcc dot gnu dot org 2007-03-10 22:08 -------
Actually the testcase from comment #7 should abort() and I got the numbers
wrong. The following is more usual at that it aborts if the code is wrong:
extern void exit(int);
extern void abort();
void foo (int e1)
{
if (e1 < 0)
{
e1 = -e1;
if (e1 >>= 4)
{
if (e1 >= 1 << 5)
exit(0);
}
}
}
int main()
{
foo(-(1<<9));
abort();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31115
More information about the Gcc-bugs
mailing list