https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64181
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |10.0 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Seems to be fixed in GCC 10+. It looks like GCC is handling volatile more correctly now.