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/55932] New: DDT's default structure constructor does not work with having allocatable member variables


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

             Bug #: 55932
           Summary: DDT's default structure constructor does not work with
                    having allocatable member variables
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: stefan.mauerberger@gmail.com


Created attachment 29138
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29138
minimal working example

Hi Everybody!

First of all, this is my first bug-report. In case I am doing something
inappropriate pleas be soft with me. 

Concerning my problem: 
Invoking the default DDT structure constructor on types with allocatable member
variables causes an internal compiler error. I tried with 4.7.1, 4.7.2 and
4.8.0 20121008. 

Defining a DDT having an allocatable member variable
TYPE :: test_typ
    REAL, ALLOCATABLE :: a
END TYPE
the default structure constructor causes gfortran to crash
my_test_typ = test_typ(a=1.0) 

As far as I can see, my code is valid Fortran. With NAG, PGI and Intel
everything works just fine.

If you need more details pleas let me know.

Cheers, Stefan 

Environment: Ubuntu 12.10
How-To-Repeat: Try to compile the attached code


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