https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107380 --- Comment #1 from anlauf at gcc dot gnu.org --- Very likely a duplicate. There is a known issue when an attribute of a class variable is given after the declaration.