From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39879 invoked by alias); 7 Jul 2015 17:23:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 39836 invoked by uid 48); 7 Jul 2015 17:23:18 -0000 From: "casey.webster at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56520] Syntax error causes misleading message: "Invalid character in name" Date: Tue, 07 Jul 2015 17:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: casey.webster at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: kargl at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00560.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56520 --- Comment #5 from Casey Webster --- This patch changes the error given for the testcase in this bug, but not the one in my bug marked as a duplicate of this one (pr66710). From that bug, the invalid character error is still emitted: b = A(:,iter)) 1 Error: Invalid character in name at (1) This was confirmed with gcc built this morning (gcc version 6.0.0 20150707) Also, while I'll agree that "Unclassifiable statement" is better than "Invalid character in name", it would be nicer to see "Unbalanced parenthesis".