https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65892
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |--- --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Thanks for the pointer! I had looked for a related bug report but couldn't find it. There's an important difference between the test cases in pr14319 and the one here that's easy to overlook. The rule only applies to structs defined in unions, not those defined at file scope and only used to declare union members, and to translation units in which the union definition is visible. I would recommend closing pr14319 as NOTABUG. I have reopened this bug.