<div dir="ltr">Cool. Have at.<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 30, 2013 at 5:58 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The attached patch adds -Wno-nested-anon-types to -pedantic builds of<br>
LLVM. This warning catches uses of an extremely minor C++ extension,<br>
which is supported by basically every existing C++ compiler (although<br>
EDG also diagnoses it, and rejects it in its strict mode). The code<br>
pattern looks like:<br>
<br>
struct X {<br>
  union {<br>
    struct {<br>
      int a;<br>
      int b;<br>
    } S;<br>
  };<br>
};<br>
<br>
This is ill-formed, because it is not valid to define types within an<br>
anonymous union.<br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888">Richard<br>
</font></span><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>