https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83192
--- Comment #2 from Vivek Rao <vivekrao4 at yahoo dot com> --- Using GNU Fortran (GCC) 8.0.1 20180408 (experimental) from equation.com the code now compiles, so there may have been a bug in their previous build. I suggest closing this report.