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

--- Comment #5 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #3)
> We still might add a -std=f2008 check there.

I find the same wording in my local copy of F2003, actually:

"If variable and expr have different kind type parameters, each character c in
expr is converted to the kind type parameter of variable by
ACHAR(IACHAR(c),KIND(variable))."

(ISO/IEC JTC1/SC22/WG5 N1578 dated 2003-10-8)


(In reply to Dominique d'Humieres from comment #4)
> (5) if the variable is of type character and of ISO 10646, ASCII, or default
> character kind, expr shall be of ISO 10646, ASCII, or default character kind,
> (6) otherwise if the variable is of type character expr shall have the same
> kind type parameter,

I think there is a reasonable interpretation where it does not conflict: it
means ISO 10646 and ASCII and default interconvert, but not necessarily other
character kinds. It does not say, for example, "expr shall be of ISO 10646,
ASCII, or default character kind (*respectively*)".

Reply via email to