This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37173] Check whether intrinsic assignment between character kind=1 / 4 is allowed


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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Francois-Xavier Coudert from comment #2)
> Long overdue

But now changed as the current wording (seemingly as of F2008):

"For an intrinsic assignment statement where the variable is of type character,
if expr has a different kind type parameter, each character c in expr is
converted to the kind type parameterof the variable by ACHAR(IACHAR(c),
KIND(variable))"


See http://j3-fortran.org/doc/year/14/14-007r2.pdf, "7.2.1.3 Interpretation of
intrinsic assignments", paragraph 11.


We still might add a -std=f2008 check there.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]