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

            Bug ID: 105494
           Summary: syntax error with requires { []{}(); };
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

maybe dup of PR99546, PR105222.

int main() {
  requires { []{}(); };    // syntax error
  requires { []{ ??? }; }; // no syntax error
}

https://godbolt.org/z/rfnssoe3T

Reply via email to