https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56667
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P4 |P5 Status|WAITING |NEW CC| |kargl at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #2) > How difficult would it be to provide better message? Is it worth the work? > If no, this PR could be closed as WONTFIX. I have a patch. The problem is the matcher for a complex entity runs prior to the matcher for an implied do-loop. Errors are queued in that order so the slightly obtuse error message is emitted. https://gcc.gnu.org/ml/fortran/2018-03/msg00018.html