https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67678
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, it might be an intentional GNU extension. Older versions of Clang warned about it with the -Wgnu option rather than -Wredeclared-class-member.