[Bug fortran/60813] New: [Coarray] substrings mishandled
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 10 21:13:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60813
Bug ID: 60813
Summary: [Coarray] substrings mishandled
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: diagnostic, rejects-valid
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
The following substring reference gives the bogus:
Error: Rank mismatch in array reference at (1) (1/0)
character(len=5), save :: str[*]
print *, str(j:j)
end
While the following (array section) is rejected - but with the wrong error
message. It should state that "str" is a scalar. (Correct syntax for a
substring would be "str[1](j:j)".)
character(len=5), save :: str[*]
print *, str(j:j)[1]
end
More information about the Gcc-bugs
mailing list