[all-commits] [llvm/llvm-project] 98ea47: Properly Propagate RecoveryExpr through RequiresExpr

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Mar 29 09:05:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98ea4712828b0802c99b3e8a6808cdc908f5b5b9
      https://github.com/llvm/llvm-project/commit/98ea4712828b0802c99b3e8a6808cdc908f5b5b9
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M clang/lib/AST/ExprConcepts.cpp
    M clang/test/CXX/drs/dr25xx.cpp

  Log Message:
  -----------
  Properly Propagate RecoveryExpr through RequiresExpr

Commit 3d7946c58 implemented a DR that allowed us to error in a case
where an ill-formedness in a RequiresExpr is diagnosed as a satisfaction
failure.  However, it failed to cover cases where the RequiresExpr had
Requirements that failed for similar reasons.

This patch propagates the RecoveryExpr "containsErrors" correctly
through RequiresExpr.

Fixes: #61776




More information about the All-commits mailing list