]> granicus.if.org Git - clang/commit
Fix crash in cleanup attr handling
authorAlp Toker <alp@nuanti.com>
Sun, 20 Oct 2013 18:48:56 +0000 (18:48 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 20 Oct 2013 18:48:56 +0000 (18:48 +0000)
commit8b407727aef487051835440deb641e60f7a743f8
treecb9811aea6d84643fb75efe53e9ee26063164005
parent363193b1bd4d9e0f07d361113157b9d4f229f212
Fix crash in cleanup attr handling

ResolveSingleFunctionTemplateSpecialization() returns 0 and doesn't emit diags
unless the expression has template-ids, so we must null check the result.

Also add a better diag noting which overloads are causing the problem.

Reviewed by Aaron Ballman.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193055 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/attr-cleanup.cpp