https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96636
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:af76342b444948ab262b276cdf083c2d2e0cebbb commit r12-2653-gaf76342b444948ab262b276cdf083c2d2e0cebbb Author: Jason Merrill <ja...@redhat.com> Date: Fri Jul 30 16:49:03 2021 -0400 c++: ICE on anon struct with base [PR96636] pinski pointed out that my recent change to reject anonymous structs with bases was relevant to this PR. But we still ICEd after giving that error; this fixes the ICE. PR c++/96636 gcc/cp/ChangeLog: * decl.c (fixup_anonymous_aggr): Clear TYPE_NEEDS_CONSTRUCTING after error. gcc/testsuite/ChangeLog: * g++.dg/ext/anon-struct9.C: New test.