<div class="gmail_quote">On Tue, Nov 29, 2011 at 2:43 PM, Matt Beaumont-Gay <span dir="ltr"><<a href="mailto:matthewbg@google.com">matthewbg@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
+    if (!CRD->isStandardLayout()) return false;</blockquote></div><br><div>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.</div><div><br></div>
<div>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...</div>