From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 872 invoked by alias); 15 Dec 2012 19:46:55 -0000 Received: (qmail 818 invoked by uid 48); 15 Dec 2012 19:46:38 -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 19:46: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/msg01594.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55072 --- Comment #14 from janus at gcc dot gnu.org 2012-12-15 19:46:37 UTC --- (In reply to comment #13) > (In reply to comment #11) > > Ok, revised version of the patch from comment 9, which fixes the runtime > > failure on internal_pack_10.f90: > > > > [...] > > > It feels like a hack (that what there before) to blindly disable derived types > here. The real problem is that the code under the if condition supports only > bare variables without subreferences. > On the other hand it looks like a correct hack WRT the existing behaviour. Well, yeah. My primary concern right now is really to get the regression fixed ASAP (this sort of wrong-code regression is pretty much the worst thing which can happen in terms of compiler bugs, I guess). But of course you're right about the underlying problem. If you are willing to fix this, it would be greatly appreciated. (I currently do not have the capacities to take care of it, unfortunately.)