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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kargl at gcc dot gnu.org
         Resolution|---                         |WONTFIX

--- Comment #2 from kargl at gcc dot gnu.org ---
gfortran gives a reasonable error for first issue.

% gfc6 -c -fmax-errors=1 q1.f90
q1.f90:5:47:

    if ((Verbose) .and. (abs(Position - Anchor) le. Cut_off )) then
                                               1
Error: Expected a right parenthesis in expression at (1)

gfortran is clearly trying to and expression of the form
(abs(Position - Anchor)) where the last righthand parenthesis
is missing.  It is the programmer's job to look at the locus
of the error and make an appropriate fix.

The second error is simply a side effect of gfortran trying to
do its best to compile the mangled code.  Fix the first problem,
and the second problem goes away.

The error message for the second program is also reasonable.
Once the first error is fixed, then the others go away.

Reply via email to