Commit a357ac88 by Richard Stallman

(check_init_type_bitfields): Check for mismatch

between field's mode and its type's mode.

From-SVN: r5304
parent 5be957a2
...@@ -5485,7 +5485,9 @@ check_init_type_bitfields (type) ...@@ -5485,7 +5485,9 @@ check_init_type_bitfields (type)
tree tail; tree tail;
for (tail = TYPE_FIELDS (type); tail; for (tail = TYPE_FIELDS (type); tail;
tail = TREE_CHAIN (tail)) tail = TREE_CHAIN (tail))
if (DECL_BIT_FIELD (tail)) if (DECL_BIT_FIELD (tail)
/* This catches cases like `int foo : 8;'. */
|| DECL_MODE (tail) != TYPE_MODE (TREE_TYPE (tail)))
{ {
constructor_incremental = 0; constructor_incremental = 0;
break; break;
......
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