subroutine bug implicit none type :: type1 character, dimension(2) :: field1 integer :: field2 end type type1 type (type1) :: foo print *, foo%field2 end subroutine bug t.f90: In function `bug': t.f90:1: internal compiler error: in gfc_get_dtype_cst, at fortran/ trans-types.c:584 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. More fun with derived types and character arrays...
Confirmed.
This is a dup of bug 13253. *** This bug has been marked as a duplicate of 13253 ***