public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37173] New: Check whether intrinsic assignment between character kind=1 / 4 is allowed
@ 2008-08-20 5:59 burnus at gcc dot gnu dot org
2009-03-29 8:52 ` [Bug fortran/37173] " fxcoudert at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-08-20 5:59 UTC (permalink / raw)
To: gcc-bugs
The Reply to the comments to the Fortran 2008 Candidate Draft,
http://www.j3-fortran.org/doc/year/08/08-272.html, contains:
> Unfortunately, the premise that intrinsic assignement between character
> variables of different kind is allowed is wrong. See table 7.10 on page 152
> of the draft: "Type conformance for the intrinsic assignment". Character
> assignments are only allowed for "the same kind type parameter". J3 believes
> the mapping between characters of different kind is difficult to define.
> Consequently, J3 declines to make this addition.
If I understand the reply correctly, the following is invalid:
character(kind=1) :: str = 4_'Hello'
We should check and reject it with -std=f* if it turns out to be invalid.
--
Summary: Check whether intrinsic assignment between character
kind=1 / 4 is allowed
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37173
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-29 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20 5:59 [Bug fortran/37173] New: Check whether intrinsic assignment between character kind=1 / 4 is allowed burnus at gcc dot gnu dot org
2009-03-29 8:52 ` [Bug fortran/37173] " fxcoudert at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).