[cfe-commits] r173377 - in /cfe/trunk: include/clang/AST/Expr.h include/clang/Basic/DiagnosticASTKinds.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/AST/ExprConstant.cpp lib/Sema/SemaChecking.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaExprCXX.cpp lib/Sema/SemaStmt.cpp test/Sema/switch-1.c

jahanian fjahanian at apple.com
Fri Jan 25 09:21:26 PST 2013


On Jan 24, 2013, at 5:35 PM, Richard Smith <richard at metafoo.co.uk> wrote:

>> 
>> So, I need to mention that it is a constant expression.
>> Currently it says. overflow of constant expression results in value %0 of type %1
>> I think your suggesting would be something like:
>> 
>> "overflow of constant expression;  resulting  value is %0 of type %1"
> 
> The warning also catches cases which are not constant expressions, such as...
> 
> int a;
> int b = (a, 65537) * 65537;

Good observation. In r r173461.

- Fariborz





More information about the cfe-commits mailing list