[clang] Fix crash when creating deduction guide.
authorAdam Czachorowski <adamcz@google.com>
Thu, 4 Mar 2021 17:01:06 +0000 (18:01 +0100)
committerAdam Czachorowski <adamcz@google.com>
Tue, 9 Mar 2021 15:57:56 +0000 (16:57 +0100)
commit4e1c487004a29ec9bc56fd47fc30336d033c57dd
tree22c1eac40dfd401a8583437e3c59302ef62ddf28
parent4f8e299785e860cf974d696d7ca83b70a94977fe
[clang] Fix crash when creating deduction guide.

We used to trigger assertion when transforming c-tor with unparsed
default argument. Now we ignore such constructors for this purpose.

Differential Revision: https://reviews.llvm.org/D97965
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaCXX/cxx1z-class-template-argument-deduction.cpp