https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56520
--- Comment #5 from Casey Webster <casey.webster at gmail dot com> --- 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".