https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105526
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #5 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #4) > *** Bug 103796 has been marked as a duplicate of this bug. *** The diff attached to the duplicate did handle the optional form-team-spec-list. + + /* Abort if the unsupported form-team-spec-list is detected. */ + gfc_gobble_whitespace (); + if (gfc_peek_ascii_char () == ',') + { + gfc_error ("Comma detected at %C. The optional [, " + "form-team-spec-list ] is unsupported. Be a hero and " + "join the gfortran development team."); + return MATCH_ERROR; + } gfortran currently gives hotrats:kargl[203] gfcx -c -fcoarray=single a.f90 a.f90:7:22: 7 | FORM TEAM (ME(1), ROW, NEW_INDEX=ME(2)) | 1 Error: Syntax error in FORM TEAM statement at (1)