[clang] Do not crash on undefined template partial specialization
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Thu, 27 Apr 2023 09:24:31 +0000 (05:24 -0400)
committerMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Thu, 27 Apr 2023 09:38:41 +0000 (05:38 -0400)
commit7c97dc20ab6148289f2cc01b2999130e32a19eb3
tree361325fe8fa3879dfe9b2202ab00f4f6dbff9058
parent19732a3eaa978f2c65c233a97593b09e43a618cc
[clang] Do not crash on undefined template partial specialization

Before checking that template partial specialization is "reachable",
ensure it exists.

Fixes https://github.com/llvm/llvm-project/issues/61356

Reviewed By: shafik, erichkeane

Differential Revision: https://reviews.llvm.org/D148330
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaCXXScopeSpec.cpp
clang/test/SemaCXX/undefined-partial-specialization.cpp [new file with mode: 0644]