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

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


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fbd4ab395f73209d09d821f6e5d49150c1e36ab
      https://github.com/llvm/llvm-project/commit/9fbd4ab395f73209d09d821f6e5d49150c1e36ab
  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.

(cherry picked from commit 5fef14d932fe602bf998b8fb8a809ff85ca1e245)




More information about the All-commits mailing list