------- Additional Comments From tobi at gcc dot gnu dot org 2005-04-15 15:27 ------- Yes, this seems to be the case: when the statement matchers don't succeed, they skip to the next line via gfc_error_recovery, see the bottom of decode_statement. therefore the if (gfc_at_eol ()) you changed doesn't trigger.
It looks like we should either have the statment matchers return a new statement type ST_ERROR, and not advance across the end-of-statement, or code similar to the code you added to next_statement is needed in gfc_error_recovery or thereabout. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14569