This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48923] New: Type with Allocatable Length Character Component


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: unassigned@gcc.gnu.org
        ReportedBy: andrew.t.baldwin@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]