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

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 17 01:51:05 PDT 2021


curdeius planned changes to this revision.
curdeius added a comment.

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.


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