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

            Bug ID: 69422
           Summary: Unexpected result with allocatable character type
                    component
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info
  Target Milestone: ---

With the current svn master branch the following code prints out nothing for
'test result':

    module funcs
    implicit none

    Type T
    character(LEN=:), allocatable :: source
    end type T

    type TPointer
        Type(T), pointer :: P
    end type TPointer

    end module

    program Test1
    use funcs
    Type(TPointer) :: X

    allocate(X%P)

    X%P%Source = 'test string'
    print *, 'test result = ', X%P%Source

    end program Test1


This may be a regression from earlier 6.0 commits, but not sure.

Reply via email to