[PATCH] D110460: [clang] set templates as invalid when any of the parameters are invalid

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 24 18:37:29 PDT 2021


mizvekov created this revision.
mizvekov published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

See PR51872 for the original repro.

This fixes a crash when converting a templated constructor into a deduction
guide, in case any of the template parameters were invalid.

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110460

Files:
  clang/lib/AST/DeclTemplate.cpp
  clang/test/SemaTemplate/deduction-crash.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110460.375001.patch
Type: text/x-patch
Size: 7135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210925/c7888da5/attachment.bin>


More information about the cfe-commits mailing list