https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120557
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |14.4 Summary|ICE: tree check: expected |[14/15/16 Regression] ICE: |record_type or union_type |tree check: expected |or qual_union_type, have |record_type or union_type |integer_type in |or qual_union_type, have |finish_non_static_data_memb |integer_type in |er, at cp/semantics.cc:2809 |finish_non_static_data_memb | |er, at cp/semantics.cc:2809 Last reconfirmed| |2025-06-09 Keywords| |c++-lambda Known to work| |13.3.0 Ever confirmed|0 |1 Known to fail| |14.1.0 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Reduced: ``` void do_thing(int x) { auto second = [&](this auto const& self, int b) -> int { return self(x); }; } ```