[Bug fortran/82086] namelist read with repeat count fails when item is member of array of structures
jsberg at bnl dot gov
gcc-bugzilla@gcc.gnu.org
Mon Jan 29 13:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82086
--- Comment #7 from jsberg at bnl dot gov ---
As to why I think this is a bug (and why I think Intel's compiler is doing the
right thing), referencing the 2008 standard (N1830):
10.11.2, paragraph 2:
Each object designator shall begin with a name from the
namelist-group-object-list (5.6) and shall follow the syntax of designator
(R601).
10.11.3.2, paragraph 2:
When the designator in the input record represents an array variable or a
variable of derived type, the effect is as if the variable represented were
expanded into a sequence of scalar list items, in the same way that formatted
input/output list items are expanded (9.6.3).
10.11.3.3, paragraph 1:
... The r*c form is equivalent to r successive appearances of the constant c
R601 designator is object-name
or array-element
or array-section
or coindexed-named-object
or complex-part-designator
or structure-component
or substring
R611 data-ref is part-ref [ % part-ref ] ...
R612 part-ref is part-name [ ( section-subscript-list ) ] [ image-selector ]
R618 array-section is data-ref [ ( substring-range ) ]
or complex-part-designator
More information about the Gcc-bugs
mailing list