Commit 4bc30529 by Richard Guenther Committed by Richard Biener

re PR middle-end/40404 (Comparison involving unsigned int:17 bitfield seems wrong)

2009-06-17  Richard Guenther  <rguenther@suse.de>

	PR middle-end/40404
	* gcc.c-torture/execute/pr40404.c: New testcase.

From-SVN: r148606
parent 4d61856d
2009-06-17 Richard Guenther <rguenther@suse.de>
PR middle-end/40404
* gcc.c-torture/execute/pr40404.c: New testcase.
2009-06-17 Richard Guenther <rguenther@suse.de>
PR middle-end/40460
* g++.dg/torture/pr40460.C: New testcase.
......
extern void abort (void);
struct S {
unsigned int ui17 : 17;
} s;
int main()
{
s.ui17 = 0x1ffff;
if (s.ui17 >= 0xfffffffeu)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment