https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67524
--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> --- With a recent version the message is now : $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.0.0 20160121 (experimental) [trunk revision 232670] $ gfortran-6 -c z1_imchfe.f90 z1_imchfe.f90:4:0: function f(x) internal compiler error: tree check: expected record_type or union_type or qual_union_type, have void_type in build_entry_thunks, at fortran/trans-decl.c:2676