[cfe-commits] r86173 - /cfe/trunk/lib/Sema/SemaExpr.cpp
sebastian.redl at getdesigned.at
Thu Nov 5 13:09:23 PST 2009
Date: Thu Nov 5 15:09:23 2009
New Revision: 86173
The signed/unsigned checker should not warn for value-dependent expressions, and should especially not try to evaluate them.
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Nov 5 15:09:23 2009
@@ -4434,6 +4434,11 @@
if (!lt->isIntegerType() || !rt->isIntegerType())
+ // If either expression is value-dependent, don't warn. We'll get another
+ // chance at instantiation time.
+ if (lex->isValueDependent() || rex->isValueDependent())
// The rule is that the signed operand becomes unsigned, so isolate the
// signed operand.
More information about the cfe-commits