https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87939
Bug ID: 87939 Summary: Support STAT= and ERRMSG= specifiers to CRITICAL and TEAM statements Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: weeks at iastate dot edu Target Milestone: --- gcc/fortran/match.c appears to implement support for that STAT= and ERRMSG= specifiers in LOCK, UNLOCK, SYNC ALL, SYNC IMAGES, and SYNC MEMORY statements (as standardized by Fortran 2008), in addition to EVENT POST and EVENT WAIT from the forthcoming Fortran 2018 standard. gfortran currently lacks support for STAT= and ERRMSG= specifiers in several statements where they will be allowed in Fortran 2018: FORM TEAM, CHANGE TEAM, SYNC TEAM, END TEAM, CRITICAL, and END CRITICAL. It would be beneficial to add these to gfortran to allow more comprehensive support for failed images in OpenCoarrays.