From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45686 invoked by alias); 3 Apr 2015 12:23:54 -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 45634 invoked by uid 48); 3 Apr 2015 12:23:51 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64986] class_to_type_4.f90: valgrind error: Invalid read/write of size 8 Date: Fri, 03 Apr 2015 12:23: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: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-04/txt/msg00198.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64986 --- Comment #7 from Dominique d'Humieres --- Further reduced test: program test implicit none type t integer :: ii end type t type, extends(t) :: v real, allocatable :: rr(:) end type v type(v) :: b(3) b = func7() ! scalar daughter type to array - alloc comps in parent type contains function func7() result(res) class(v), allocatable :: res allocate (res, source = v(3,[10.0,20.0])) end function func7 end program test