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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|WAITING                     |ASSIGNED
             Blocks|                            |32630

--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
I'm going to fix the accepts-invalid part of this bug - this has gotten
more important with the automatic generation of interfaces.

How to work with Fortran arrays of character(len=1) as strings...
I thought there was an article by Steve Lionel about that, but I
cannot seem to find it.

TRANSFER looks like a good possibility, at least:

program main
  character(len=10) :: a
  character :: b(10)
  b = 'x'
  a = transfer(b,a)
  print *,b
end program main


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32630
[Bug 32630] [meta-bug] ISO C binding

Reply via email to