https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Last reconfirmed| |2025-05-29 --- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> --- I believe that this is fixed on trunk (as a consequence of fixing PR119916 / CWG2563). Please confirm (I have tested your example, below - but perhaps you have some larger case?)