https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120637
--- Comment #3 from Antony Lewis ---
I tested just removing the was_finalization test, and it seems to work. This is
basically reverting the change in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94109
https://gcc.gnu.org/cgit/gcc/commit/?id=1a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120637
--- Comment #2 from Antony Lewis ---
Gemini and o3-pro, after some iteration, think this bug is due to reusing stale
cache pointers, which seems plausible to me and fits the erratic behaviour.
FWIW there is description and possible workaround a