https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69148
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This doesn't even compile on the trunk: pr69148.C:7:17: error: flexible array member ‘adsp21062_device::m_r’ not at end of ‘class adsp21062_device’ SHARC_REG m_r[]; ^ pr69148.C:6:7: note: in the definition of ‘class adsp21062_device’ class adsp21062_device { ^~~~~~~~~~~~~~~~ If I move m_r declaration to the end, then it compiles fine.