Looks great, please commit!<br><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 4:36 PM, Richard Trieu <span dir="ltr"><<a href="mailto:rtrieu@google.com">rtrieu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Remove warnings of constant operands of logical operators from template instantiations. Upon instantiation of template, value-dependent parameters are replaced by equivalent literals, so code like:<div><br></div><div><div>
template<unsigned int A, unsigned int B> struct S {</div><div> int foo() {</div><div> int x = A && B;</div></div><div> }</div><div>}</div><div><br></div><div>will not warn on A && B on every instantiation. This will still warn on other cases inside templates, which will be caught on checking the template definition.</div>
<div><br></div><div>Patch attached and available at <a href="http://codereview.appspot.com/4650076/" target="_blank">http://codereview.appspot.com/4650076/</a></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></blockquote></div><br>