[all-commits] [llvm/llvm-project] 4444ee: Improve requirement clause limitation on non templ...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Mar 29 06:27:39 PDT 2023


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

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaLambda.cpp
    M clang/test/CXX/dcl.decl/dcl.decl.general/p4-20.cpp
    M clang/test/Parser/cxx2b-lambdas.cpp
    M clang/test/SemaCXX/lambda-capture-type-deduction.cpp

  Log Message:
  -----------
  Improve requirement clause limitation on non templated function

The current implementation 6da3d66f03f9162ef341cc67218be40e22fe9808
got a few things wrong, particularly that a template, or  definition
or member in a templated entity is required to be allowed to have a
trailing requires clause.

This patch corrects this, as reproted by #61748

Fixes: #61748

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




More information about the All-commits mailing list