From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23731 invoked by alias); 10 Jan 2013 07:59:01 -0000 Received: (qmail 23682 invoked by uid 48); 10 Jan 2013 07:58:37 -0000 From: "stefan.mauerberger at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55932] New: DDT's default structure constructor does not work with having allocatable member variables Date: Thu, 10 Jan 2013 07:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stefan.mauerberger at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00910.txt.bz2 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