http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48923

           Summary: Type with Allocatable Length Character Component
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: andrew.t.bald...@me.com


Using gfortran 4.7.0 20110430, when trying to compile the program

      program qtest

      type postman
        character (len = :), allocatable :: mail
      end type

      type (postman) :: mrpman

      mrpman%mail = 'test'
      write (*, '(A)') mrpman%mail

      end program qtest

I receive the error

qtest.f: In function ‘qtest’:
qtest.f:1:0: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:2330
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The error goes away if the mail variable is not a component of the type
postman.

Reply via email to