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

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
What is happening here is that in the name list input, the variable flp is also
a legal LOGICAL value, so our read is interpreting it as the second value of
the array flc and trying to continue to read values for flc. It encounters the
( and throws the error.

To resolve this, I think I will have to check for a valid variable name for
each value.

[aside: A lot of these issues stem from the weaknesses in how namelists are
interpreted.  There are ambiguities in the specification.]

My next step here is to go through the F2018 standard just to make sure what we
do is valid or invalid. (cheers)

Reply via email to