https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104107
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also note I found a related regression where GCC decides the static field is not a declaration/variable and rejects the code, PR 104108 .