From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5566 invoked by alias); 2 Feb 2012 23:37:39 -0000 Received: (qmail 5556 invoked by uid 22791); 2 Feb 2012 23:37:38 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Feb 2012 23:37:26 +0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/41587] [OOP] ICE with ALLOCATABLE CLASS components Date: Thu, 02 Feb 2012 23:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Resolution Ever Confirmed Message-ID: In-Reply-To: References: 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: 2012-02/txt/msg00291.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41587 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Last reconfirmed| |2012-02-02 CC| |mikael at gcc dot gnu.org Resolution|FIXED | Ever Confirmed|0 |1 --- Comment #5 from Mikael Morin 2012-02-02 23:37:09 UTC --- (In reply to comment #1) > I don't get an ICE with the coed in comment#0. However I get one with the > following (valid?) changes: > > type t0 > integer :: j = 42 > end type t0 > type t > integer :: i > class(t0), allocatable :: foo(:) > end type t > type(t) :: k > allocate(t0 :: k%foo(3)) > print *, k%foo%j > end > > pr41587_db.f90: In function 'MAIN__': > pr41587_db.f90:9:0: internal compiler error: in gfc_conv_descriptor_data_get, > at fortran/trans-array.c:147 > The ICE is gone, but the program above prints 0 0 42 instead of 42 42 42. Reopening...