https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83522

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #3)
> And prints for the case above (not affected by resolve.c patch):
> 7 |   strings(:)(:) ! gives an error message on invalid
> Error: Invalid character in name at (1)

The reason is that gfortran tries all options, starting from an assignment. In
between it has a failed gfc_match_name which gets suppressed. When nothing
matched, "next_free" calls "gfc_error_check" which shows the buffered output,
only if no error message is buffered, the more suitable "Unclassifiable
statement at %C" is printed.

Reply via email to