https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106771
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org Known to fail| |8.5.0 Known to work| |10.4.0, 11.3.0, 12.2.0, | |9.5.0 Last reconfirmed| |2022-08-29 Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Keywords| |ice-on-valid-code --- Comment #1 from anlauf at gcc dot gnu.org --- Funny. Replacing ilocs = pack(this%iloc(IDs),this%is_active(ilocs)) by ilocs = pack(this%iloc(IDs),[this%is_active(ilocs)]) seems to be a workaround for gcc-8 - at least as far as the ICE is concerned. (The testcase crashes at runtime with any compiler I tried, so I guess it was reduced too much for this.) I don't see any issues on mainline, even when running under valgrind, so I guess the issue was fixed. Does anybody want to do a bisection to find the commit which fixed it?