Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCC and MSVC and Clang pack structs with bit-fields differently. So if a union has a field of packed struct type, and the struct has a bit-field, writing to a field after the bit-field has non-deterministic effect, thus makes all the union fields non-readable.
- Loading branch information
Xuejun Yang
committed
Aug 16, 2011
1 parent
0d755a1
commit 9a88a2f
Showing
4 changed files
with
27 additions
and
4 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
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
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
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