[all-commits] [llvm/llvm-project] 5fef14: [Concepts] Do not check constraints if not all tem...

Saar Raz via All-commits all-commits at lists.llvm.org
Wed Feb 12 06:02:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fef14d932fe602bf998b8fb8a809ff85ca1e245
      https://github.com/llvm/llvm-project/commit/5fef14d932fe602bf998b8fb8a809ff85ca1e245
  Author: Saar Raz <saar at raz.email>
  Date:   2020-02-12 (Wed, 12 Feb 2020)

  Changed paths:
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    A clang/test/CXX/temp/temp.deduct/p5.cpp

  Log Message:
  -----------
  [Concepts] Do not check constraints if not all template arguments have been deduced

We previously checked the constraints of instantiated function templates even in cases where
PartialOverloading was true and not all template arguments have been deduced, which caused crashes
in clangd (bug 44714).

We now check if all arguments have been deduced before checking constraints in partial overloading
scenarios.




More information about the All-commits mailing list