[PATCH] D14980: PR18513: make gcc compatible layout for bit-fields with explicit aligned attribute
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 30 11:27:12 PST 2015
rjmccall added a comment.
Well, this is a really nasty bug.
Please check how this interacts with #pragma pack, which normally takes precedence over even explicit alignment attributes. If that's the case here, then what you really want to do is just add the same "ExplicitFieldAlign ||" clause to the main computation that you do to the diagnostic computation.
http://reviews.llvm.org/D14980
More information about the cfe-commits
mailing list