A proposal for removing unnecessary ()’s from C++ lambdas. (Assuming this will be voted in.)
This now has a patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565886.html
https://gcc.gnu.org/g:0f161cc8494cf7283a16fa9ebbcf8fd121bab68d commit r11-7419-g0f161cc8494cf7283a16fa9ebbcf8fd121bab68d Author: Jakub Jelinek <jakub@redhat.com> Date: Fri Feb 26 10:44:52 2021 +0100 c++: Implement P1102R2 - Down with ()! The following patch implements P1102R2. For attributes, we have already attribute parsing before the parameter declarations and so when that is omitted, if the attributes are first we already accept it. 2021-02-26 Jakub Jelinek <jakub@redhat.com> * parser.c (cp_parser_lambda_declarator_opt): Implement P1102R2 - Down with ()! Make ()s optional before lambda specifiers for -std={c,gnu}++2b or with pedwarn in earlier versions. * g++.dg/cpp23/lambda-specifiers1.C: New test. Feature test macro not added yet. https://github.com/cplusplus/draft/pull/4513 doesn't mention anything.
Implemented in GCC 11.