[Bug c++/103212] requires expression with lambda inside causes a parse error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Keywords|needs-bisection | Resolution|--- |DUPLICATE CC||ppalka at gcc dot gnu.org --- Comment #4 from Patrick Palka --- Fully fixed for GCC 12.2+ by the fixes for PR101677 / PR105541 it seems. This is close enough to a dup of the latter. *** This bug has been marked as a duplicate of bug 105541 ***
[Bug c++/103212] requires expression with lambda inside causes a parse error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212 Andrew Pinski changed: What|Removed |Added Known to fail||12.1.0 Known to work||12.2.0 Keywords||needs-bisection --- Comment #3 from Andrew Pinski --- Looks like this has been fixed.
[Bug c++/103212] requires expression with lambda inside causes a parse error
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2021-11-12 Summary|requires expression with|requires expression with |lambda fails|lambda inside causes a ||parse error Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- Simplified testcase: static_assert(requires { [](int){}(0); }); Note even though MSVC parses this code correctly, it still says the static_assert is valid which is obviously wrong :).