Compiling the testsuite file unlimited_polymorphic_16 with sanitized gfortran I get the following "../../gcc-4.9.1/gcc/fortran/interface.c:2667:43: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t'" The offending line in interface.c:2667 is "&& f->sym->ts.u.cl->length->expr_type == EXPR_CONSTANT" in compare_actual_format.
$ ./xgcc -B./ -c unlimited_polymorphic_16.f90 /home/polacek/src/gcc/gcc/fortran/interface.c:2667:43: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t' Confirmed.
GCC 4.9.2 has been released.
I still have the same runtime error message in 4.9.2 Trying compilation of !from unlimited_polymorphic_16.f90 !../../gcc-4.9.2/gcc/fortran/interface.c:2667:43: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t' contains subroutine FWRite(S) class(*) :: S end subroutine subroutine IO_OutputMargeStats() character tag call FWrite(tag) end subroutine end I get ./../gcc-4.9.2/gcc/fortran/interface.c:2667:43: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t' MAIN__ __copy_character_1 io_outputmargestats fwrite main Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> <visibility> <early_local_cleanups> <*free_inline_summary> <whole-program> <inline>Assembling functions: __copy_character_1 MAIN__ main
Stiil in 5.1.0 at interface.c:2701
GCC 4.9.3 has been released.
Still there in gcc 7.0 trunk 239276
Fixed in 7.1.0