http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56674
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Slightly reduced test MODULE realspace_grid_types PUBLIC :: realspace_grid_input_type CONTAINS SUBROUTINE rs_grid_create_descriptor ( ) TYPE(realspace_grid_input_type), END SUBROUTINE END MODULE realspace_grid_types pr56674_red.f90:5.35: TYPE(realspace_grid_input_type), 1 Error: Derived type 'realspace_grid_input_type' at (1) is being used before it is defined f951: internal compiler error: Segmentation fault: 11