]> granicus.if.org Git - clang/commit
Fix bug in constant evaluation exposed by 176.gcc.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 13 Nov 2008 00:03:19 +0000 (00:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 13 Nov 2008 00:03:19 +0000 (00:03 +0000)
commitdd2b12a0329fee69ac2c26c2a3a355fb722e1e54
tree94d0bf29f204747d3f75d53c003d26b1baa53541
parent1e5bb3c12a898dd3218e46248fe3f099698c95b1
Fix bug in constant evaluation exposed by 176.gcc.
 - Evaluation of , operator used bogus assumption that LHS could be
   evaluated as an integral expression even though its type is
   unspecified.

This change is making isICE very permissive of the LHS in non-evaluated
contexts because it is not clear what predicate we would use to reject
code here. The standard didn't offer me any guidance; opinions?

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
test/Sema/const-eval.c