https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99850

            Bug ID: 99850
           Summary: [P1102R2] reject valid lambda syntax in C++23
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/x5E5cGPTb

auto l = []<auto> requires true -> void {};

gcc incorrectly rejects this valid lambda, you can see more details in
https://stackoverflow.com/questions/66833334/the-validity-of-lambda-expression-with-omitted-parameter-list-in-c23

Reply via email to