]> granicus.if.org Git - clang/commit
[Sema] Don't crash when deduction fails for decltype(auto)
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 00:29:28 +0000 (00:29 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 1 Jul 2015 00:29:28 +0000 (00:29 +0000)
commit87821a35a3f66a9ae43da9da78505b520b062e2d
tree7d331f7b34ddec47c567ae59355ca1916c73fa13
parente7407681b6abd8d3072c5f002f4ec67cb997714b
[Sema] Don't crash when deduction fails for decltype(auto)

We didn't check the return result of BuildDecltypeType, resulting in us
crashing when we tried to grab the canonical version of the type.

This fixes PR23995.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241131 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p7-1y.cpp