[PATCH] D98433: [clang] [C++2b] [P1102] Accept lambdas without parameter list ().

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 17 04:42:01 PDT 2021


aaron.ballman added a comment.

In D98433#2631037 <https://reviews.llvm.org/D98433#2631037>, @curdeius wrote:

> I've checked and GCC accepts lambdas without parens (but with specifiers) in all standard modes, giving a warning pre-C++2b.
> I guess it's reasonable to align the behaviour.
> Cf. https://github.com/gcc-mirror/gcc/commit/0f161cc8494cf7283a16fa9ebbcf8fd121bab68d#diff-e668c6c0533673af02f98ed35505230e0f6abdcc4f4814642ef619c93cadf794R11353-R11360, https://godbolt.org/z/5zK4M6.
> I'll do it also then unless somebody opposes.

I think that makes sense, thank you for looking into it!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98433/new/

https://reviews.llvm.org/D98433



More information about the cfe-commits mailing list