https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #3) > The reason why G++ rejects structs with a flexible array as the sole member > is because GCC (in C mode) doesn't accept them. Git log indicates that GCC > started rejecting such code in r38705 Note this change was done long before clang was around so it would be interesting to know why clang chose differently.