https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92601
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:9d5df8e3221c5fe5c8aca0334655b075bd9ea556 commit r9-8321-g9d5df8e3221c5fe5c8aca0334655b075bd9ea556 Author: Jason Merrill <ja...@redhat.com> Date: Mon Mar 2 14:42:47 2020 -0500 checking: avoid verify_type_variant crash on incomplete type. Here, we end up calling gen_type_die_with_usage for a type that's in the middle of finish_struct_1, after we set TYPE_NEEDS_CONSTRUCTING on it but before we copy all the flags to the variants--and, significantly, before we set its TYPE_SIZE. It seems reasonable to only look at TYPE_NEEDS_CONSTRUCTING on complete types, since we aren't going to try to create an object of an incomplete type any other way. gcc/ChangeLog 2020-03-02 Jason Merrill <ja...@redhat.com> PR c++/92601 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING of complete types.