[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csmith-project/csmith] 05b1f8: disallow structs containing bit-fields inside unio...
Branch: refs/heads/master
Home: https://github.com/csmith-project/csmith
Commit: 05b1f8104615ecf989197662ddee399c677d694a
https://github.com/csmith-project/csmith/commit/05b1f8104615ecf989197662ddee399c677d694a
Author: Xuejun Yang <jxyang@cs.utah.edu>
Date: 2011-08-20 (Sat, 20 Aug 2011)
Changed paths:
M src/Type.cpp
Log Message:
-----------
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.