Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disallow structs containing bit-fields inside unions
C99 gives too much freedom to how to pack bit-fields. Allowing structs containing bit-fields inside unions and allowing writing to one union field then reading from another compatible union fields have produced random programs with ambiguous meanings.
- Loading branch information
Xuejun Yang
committed
Aug 20, 2011
1 parent
c5b2c63
commit 05b1f81
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters