This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66710] New: Unhelpful error message with unbalanced parenthesis
- From: "casey.webster at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jun 2015 18:20:18 +0000
- Subject: [Bug fortran/66710] New: Unhelpful error message with unbalanced parenthesis
- Auto-submitted: auto-generated
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.