Committed revision 135222. On Thu, Jul 14, 2011 at 4:51 PM, Chandler Carruth <[email protected]>wrote:
> Looks great, please commit! > > On Thu, Jul 14, 2011 at 4:36 PM, Richard Trieu <[email protected]> wrote: > >> 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: >> >> template<unsigned int A, unsigned int B> struct S { >> int foo() { >> int x = A && B; >> } >> } >> >> 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. >> >> Patch attached and available at http://codereview.appspot.com/4650076/ >> >> _______________________________________________ >> cfe-commits mailing list >> [email protected] >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >> >> >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
