https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78661

--- Comment #25 from janus at gcc dot gnu.org ---
(In reply to Jerry DeLisle from comment #24)
> I dont think the parent is suppose to emit the Object name. What if there
> are multiple components?

Huh, I'm not sure. But your statement contradicts Ian's claim in comment #0:

> UDDTIO procedures are responsible for writing/reading the value part of the
> name-value subsequence, the processor still has responsibility for the name=
> part.

I hope one should be able to settle this by having a deeper look in the
standard?!?

I found the following in F08 section 10.11.2:

"If the namelist group object is of derived type, the designator in the input
record may be either the name of the variable or the designator of one of its
components, indicated by qualifying the variable name with the appropriate
component name."

And then in section 10.11.3.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)."

None of them makes a clear statement about DTIO namelist output. Apparently two
forms are possible: Either having the whole DT variable, or its components
separately.

To me it sounds like we should print the variable name (and not the component
names) if the namelist contains a full DT variable (and not just some
components).

What do other compilers do?

Reply via email to