<div dir="ltr">On Fri, May 24, 2013 at 9:23 AM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Your test case is named .cc (rather than .cpp) and as such is not getting run...which is important because it's actually broken.<br>
</blockquote><div><br></div><div style>9_9 Fixed, thanks.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
All of va_start is implementation-defined behavior anyway, yes? I guess it's still a good warning, though.<br></blockquote><div><br></div><div><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf</a> 18.7p3 explicitly calls this (and some other things) out as undefined, not implementation-defined.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
Jordan<br>
</font></span><div class=""><div class="h5"><br>
<br>
On May 23, 2013, at 22:07 , Nico Weber <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> it's undefined behavior to call va_start() with a reference parameter. It happens to work fine with clang, but blows up with other compilers (e.g. msvs), so this patch adds a warning for it. It also moves 2 other existing warnings behind the new -Wvarargs flag.<br>

><br>
> Ok?<br>
><br>
> Nico<br>
</div></div><br>> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br>
<br></blockquote></div><br></div></div>