[Bug c++/105494] New: syntax error with requires { []{}(); };
hewillk at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 5 13:35:43 GMT 2022
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
More information about the Gcc-bugs
mailing list