https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Unhelpful error message |ICE: in |when a module variable was |gfc_typenode_for_spec, at |not included in the only |fortran/trans-types.c:1062 |list |when a variable is missing | |in "use *, only" list --- Comment #41 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Reduced test integer, parameter :: path_len = 50, max_line_len2 = 100 end module calc_param_mod subroutine setup_check_path(path) use calc_param_mod, only: path_len!, max_line_len2 IMPLICIT NONE character(len=path_len),intent(inout)::path character(len=max_line_len2)::line2 end I changed the summary to reflect the real issue.