From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11191 invoked by alias); 16 Feb 2015 13:48:31 -0000 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 Received: (qmail 11131 invoked by uid 48); 16 Feb 2015 13:48:27 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64921] [4.9/5 Regression] FAIL: gfortran.dg/class_allocate_18.f90 Date: Mon, 16 Feb 2015 13:48: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-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg01749.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64921 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-02-16 Component|rtl-optimization |fortran Ever confirmed|0 |1 --- Comment #12 from Dominique d'Humieres --- If I comment the line Deallocate (t) the test compiled with -fsanitize=address runs without error. This is also the case for the following variant Program main Implicit None Type :: t1 End Type Type, Extends (t1) :: t2 Integer, Allocatable :: i End Type Type, Extends (t2) :: t3 Integer, Allocatable :: j End Type Class (t1), Allocatable :: t Allocate (t3 :: t) if (allocated(t)) then print *,"allocated!" select type (t) type is (t1) print *, "type is t1" type is (t2) print *, "type is t2" type is (t3) print *, "type is t3" t%i = 42 t%j = 99 print *, t%i, t%j Deallocate (t%i, t%j) end select ! deallocate (t) else call abort () end if End which outputs at run time allocated! type is t3 42 99