]> granicus.if.org Git - clang/commit
<rdar://problem/13584715> Converted constant expressions are expected to have integra...
authorDouglas Gregor <dgregor@apple.com>
Mon, 8 Apr 2013 23:24:07 +0000 (23:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 8 Apr 2013 23:24:07 +0000 (23:24 +0000)
commit484f6fa0bd6b16b64e5c4cb40260f69a3dd52b4a
treec52fa061595291c7f0cc4c1fc09fdfc77ff70fd6
parent44b2ea97957b553e76e757c1926c3ad1fadbe1b2
<rdar://problem/13584715> Converted constant expressions are expected to have integral values.

We were assuming that any expression used as a converted constant
expression would either not have a folded constant value or would be
an integer, which is not the case for some ill-formed constant
expressions. Because converted constant expressions are only used
where integral values are expected, we can simply treat this as an
error path. If that ever changes, we'll need to widen the interface of
Sema::CheckConvertedConstantExpression() anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp