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; 6+ 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] 6+ messages in thread

end of thread, other threads:[~2014-09-29  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-37173-4@http.gcc.gnu.org/bugzilla/>
2014-09-27 15:11 ` [Bug fortran/37173] Check whether intrinsic assignment between character kind=1 / 4 is allowed fxcoudert at gcc dot gnu.org
2014-09-28 14:45 ` burnus at gcc dot gnu.org
2014-09-28 15:15 ` dominiq at lps dot ens.fr
2014-09-29  8:32 ` fxcoudert at gcc dot gnu.org
2014-09-29  8:33 ` fxcoudert at gcc dot gnu.org
2008-08-20  5:59 [Bug fortran/37173] New: " 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).