https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59024
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- AFAICT the errors with the trunk (5.0) are now pr59024.f90:6.6: TYPE tc 1 Error: Syntax error in PUBLIC statement at (1) pr59024.f90:7.5: END TYPE tc 1 Error: Expecting END MODULE statement at (1) pr59024.f90:15.12: TYPE(tc) t 1 Error: Derived type 'tc' at (1) is being used before it is defined pr59024.f90:17.14: END MODULE mtc 1 Error: Procedure 'C_PTR_1' in generic interface 'tc' at (1) is neither function nor subroutine without any ICE. The change of behavior occurred between revisions r214073 (2014-08-17, ICE) and r214113 (2014-08-18, error). A candidate could be r214076, but I don't see why. Unless someone objects I'll close this PR as fixed in a week.