https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106050
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to Martin Liška from comment #2) > Likely started with r8-3056-g5bab4c9631c478b7, it was rejected before the > revision anyway. With all branches up to 13-branch, I see: ../pr105594/pr106050.f90:3:12: 3 | type t(k) | 1 Error: Unexpected derived type declaration statement at (1) (null):0: confused by earlier errors, bailing out With trunk, I get: ../pr105594/pr106050.f90:3:12: 3 | type t(k) | 1 Error: Unexpected derived type declaration statement at (1) f951: internal compiler error: Segmentation fault 0x101683f crash_signal ../../gcc/gcc/toplev.cc:314 0x9228ca delete_root ../../gcc/gcc/fortran/bbt.cc:150 0x922a8e gfc_delete_bbt(void*, void*, int (*)(void*, void*)) ../../gcc/gcc/fortran/bbt.cc:197 0xa0923c gfc_delete_symtree(gfc_symtree**, char ...... I will be attaching a patch that works for me. Paul