From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13443 invoked by alias); 15 Dec 2012 10:56:43 -0000 Received: (qmail 13384 invoked by uid 48); 15 Dec 2012 10:56:26 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55072] [4.6/4.7/4.8 Regression] Missing internal_pack leads to wrong code with derived type Date: Sat, 15 Dec 2012 10:56: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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: 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-12/txt/msg01541.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55072 --- Comment #8 from janus at gcc dot gnu.org 2012-12-15 10:56:26 UTC --- (In reply to comment #7) > The following patch (which amounts to a partial revert of r156749) fixes the > behavior of comment #2 for me: Note: The patch in comment #7 actually fixes both test cases (comment #0 and #2), and is in that sense superior over the patch in comment #1. However, it yields the following testsuite failures: FAIL: gfortran.dg/assumed_type_2.f90 -O0 scan-tree-dump-times original "sub_array_assumed \\(D" 2 FAIL: gfortran.dg/assumed_type_2.f90 -O0 scan-tree-dump-times original "\\.data = \\(void .\\) &array_t1.0.;" 1 FAIL: gfortran.dg/assumed_type_2.f90 -O0 scan-tree-dump-times original "sub_array_assumed \\(\\(struct t1.0:. .\\) parm" 1 FAIL: gfortran.dg/assumed_type_2.f90 -O0 scan-tree-dump-times original "sub_array_assumed \\(\\(struct t3.0:. .\\) array_t3_ptr.data\\);" 1 FAIL: gfortran.dg/internal_pack_10.f90 -O0 execution test