https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66180
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Thank you for the testcase! With the fix for anonymous types I don't seem to get the warnings. Can you, please, check if that works for you and commit it?