[PATCH] Enable _Static_assert inside structs/unions in C11 mode
Andy Gibbs
andyg1001 at hotmail.co.uk
Wed Mar 27 02:28:32 PDT 2013
Hi,
Attached is a 5-line patch for review that enables the use of _Static_assert
inside structs and unions in C11 code, matching the similar functionality of
static_assert in C++11. I'm not sure whether the C11 standard explicitly
provides for this, but it seems a useful extension if not, and it seems that
gcc also has support for using _Static_assert in this way.
Are there any objections to me committing this?
Thanks
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static_assert.diff
Type: application/octet-stream
Size: 1940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130327/8a2f996c/attachment.obj>
More information about the cfe-commits
mailing list