[Bug fortran/66710] New: Unhelpful error message with unbalanced parenthesis

casey.webster at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 30 18:20:00 GMT 2015


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

            Bug ID: 66710
           Summary: Unhelpful error message with unbalanced parenthesis
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: casey.webster at gmail dot com
  Target Milestone: ---

A very simple test case:

      real, dimension(1,1) :: A
      b = A(:,iter))
    end

whose error is unbalanced parenthesis on line two, fails compilation as it
should, but for a very unhelpful (and wrong) error:

    error-msg.f90:2:10:

       b = A(:,iter))
              1
    Error: Invalid character in name at (1)

For comparison, ifort emits the error "error #5276: Unbalanced parentheses" for
the same testcase.



More information about the Gcc-bugs mailing list