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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.6.1                       |6.0
             Blocks|                            |32834
            Summary|length of a character       |[F95] Wrong length of a
                   |derived-type component with |character component of
                   |PARAMETER                   |named constant derived-type

--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
It's a "Fortran 95"-only issue! See the variant below:

   implicit none
   type :: a_t
      character(len=10) :: s = "x"
   end type a_t
   type(a_t), parameter :: foo = a_t("")
   print *, len(foo%s), len_trim(foo%s)
   end


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32834
[Bug 32834] [Meta-bug] 'Fortran 95'-only failures

Reply via email to