This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37173] New: Check whether intrinsic assignment between character kind=1 / 4 is allowed
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2008 05:57:43 -0000
- Subject: [Bug fortran/37173] New: Check whether intrinsic assignment between character kind=1 / 4 is allowed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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