[all-commits] [llvm/llvm-project] a99b8a: [clang] [PR49736] [C++2b] Correctly reject lambdas...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Tue Mar 30 04:54:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a99b8ae3909106d831d880c1647dabe92f470290
      https://github.com/llvm/llvm-project/commit/a99b8ae3909106d831d880c1647dabe92f470290
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/test/Parser/cxx-concepts-requires-clause.cpp
    M clang/test/Parser/cxx2a-template-lambdas.cpp
    M clang/test/Parser/cxx2b-lambdas.cpp

  Log Message:
  -----------
  [clang] [PR49736] [C++2b] Correctly reject lambdas with requires clause and no parameter list

This fixes http://llvm.org/PR49736 caused by implementing http://wg21.link/P1102 (https://reviews.llvm.org/rG0620e6f4b76a9725dbd82454d58c5a68a7e47074), by correctly allowing requires-clause only:
1) directly after template-parameter-list
2) after lambda-specifiers iff parameter-declaration-clause is present (2nd kind of lambda-declarator)

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list