https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87939
--- Comment #1 from Nathan Weeks <weeks at iastate dot edu> --- My bad: END CRITICAL does not accept STAT= or ERRMSG= arguments in Fortran 2018.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87939
--- Comment #1 from Nathan Weeks <weeks at iastate dot edu> --- My bad: END CRITICAL does not accept STAT= or ERRMSG= arguments in Fortran 2018.