[Bug fortran/77296] Compiler Error with allocatable string and associate

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sun Aug 21 10:44:00 GMT 2016


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-08-21
             Blocks|                            |68241
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8 up to trunk (7.0).

Note that the output at run time of

program test

   implicit none

   character(len=2), allocatable :: s
   s = 'A'
   associate(ss => s)
     print*,"'",ss,"'"
   end associate

end program test

is

 'pA'


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68241
[Bug 68241] [meta-bug] Deferred-length character


More information about the Gcc-bugs mailing list