https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58904
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- I get pr58904.f90:5:4: r%b = b 1 Error: Unclassifiable statement at (1) pr58904.f90:3:2: TYPE(mytype) FUNCTION create_sort_range(b) result(r) 1 Error: The type for function 'create_sort_range' at (1) is not accessible with 6.4, 7.3, and trunk (8.0) and an ICE with 5.5.