]> granicus.if.org Git - clang/commit
Fix typo-correction crash if a typo occurs within the operand of a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 Jun 2016 20:24:30 +0000 (20:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 Jun 2016 20:24:30 +0000 (20:24 +0000)
commit9276143e24b079a90482999db58611a459501473
tree973ad9a2e87e75108d9d15aa88bf6271776c109b
parent56a9798df3b2217e296a63f3798678eb681d66c7
Fix typo-correction crash if a typo occurs within the operand of a
function-style cast to a non-dependent type which is then used in an invalid
way. We'd lose the "type dependent" bit here, and downstream Sema processing
would then discard the expression if it was used in a context where its type
rendered it invalid.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/Parser/cxx1z-init-statement.cpp
test/SemaCXX/return.cpp
test/SemaCXX/typo-correction-crash.cpp