[Bug fortran/37173] New: Check whether intrinsic assignment between character kind=1 / 4 is allowed
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 20 05:59:00 GMT 2008
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
More information about the Gcc-bugs
mailing list