https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119048
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-02-27
Keywords| |ice-on-valid-code
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r13-3601:
commit 2b0e81d5cc2f7e1d773f6c502bd65b097f392675
Author: Nathan Sidwell <[email protected]>
Date: Mon Oct 31 06:11:28 2022 -0400
c++: per-scope, per-signature lambda discriminators
The revision before compiled it fine but GCC 12:
119048.C: In function ‘int main()’:
119048.C:2:24: error: ‘static’ invalid in lambda
2 | [] {}, [](...) static {};
| ^~~~~~
so I guess not a regression.