[cfe-dev] struct bitfield size check is missing

Devang Patel dpatel at apple.com
Thu Dec 13 11:15:24 PST 2007


	struct s2 {  char a;  int b:10;  short c:18;} s2;

short c:18; is invalid on darwin-x86 because 18 exceeds size of short.  
clang does not flag this as an error.

-
Devang



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071213/bbbd44e8/attachment.html>


More information about the cfe-dev mailing list