[cfe-commits] r145445 - in /cfe/trunk: lib/Sema/SemaChecking.cpp test/SemaCXX/array-bounds.cpp

Chandler Carruth chandlerc at google.com
Tue Nov 29 14:55:39 PST 2011


On Tue, Nov 29, 2011 at 2:43 PM, Matt Beaumont-Gay <matthewbg at google.com>wrote:

> +    if (!CRD->isStandardLayout()) return false;


If we don't yet, it would be good to test that we warn in the case of such
a construct in a non-standard-layout class.

Also, it just occurs to me that we need a warning for using the zero-length
array member extension under the same conditions as these -- unions, before
the last member, and in non-standard-layout classes...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111129/078c3468/attachment.html>


More information about the cfe-commits mailing list