[all-commits] [llvm/llvm-project] 37adc4: [clang] set templates as invalid when any of the p...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri Sep 24 19:05:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37adc4f957c2383a625e2e593ba1d18a25d92b91
      https://github.com/llvm/llvm-project/commit/37adc4f957c2383a625e2e593ba1d18a25d92b91
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2021-09-25 (Sat, 25 Sep 2021)

  Changed paths:
    M clang/lib/AST/DeclTemplate.cpp
    M clang/test/SemaTemplate/deduction-crash.cpp

  Log Message:
  -----------
  [clang] set templates as invalid when any of the parameters are invalid

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>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D110460




More information about the All-commits mailing list