This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55932] New: DDT's default structure constructor does not work with having allocatable member variables
- From: "stefan.mauerberger at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Jan 2013 07:58:37 +0000
- Subject: [Bug fortran/55932] New: DDT's default structure constructor does not work with having allocatable member variables
- Auto-submitted: auto-generated
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