From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31469 invoked by alias); 9 Mar 2014 18:25:09 -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 31415 invoked by uid 48); 9 Mar 2014 18:25:02 -0000 From: "dave.allured at noaa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60450] [4.7/4.8 Regression] ICE with SHAPE intrinsic Date: Sun, 09 Mar 2014 18:25: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: 4.8.2 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.allured at noaa dot gov X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus 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: 2014-03/txt/msg00710.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60450 --- Comment #9 from Dave Allured --- (In reply to janus from comment #8) > > Thanks, committed to the 4.8 branch as r208430. Will backport to 4.7 soon. Janus, are you sure that the release branch of 4.7 really needs a fix? My test shows that the latest release, 4.7.3, passes this test case, but you said "4.7" failed for you. I just reconfirmed this with the Mac Ports distribution version of 4.7.3 (x86-64 target, Mac OS). I recall that my IT staff got the same positive result for 4.7.3 on Linux, but I can't confirm that on the weekend. mac56:~/gfortran/bugs/shape-bug 14> gfortran-mp-4.7 --version | grep gcc GNU Fortran (MacPorts gcc47 4.7.3_3) 4.7.3 mac56:~/gfortran/bugs/shape-bug 15> gfortran-mp-4.7 -Wall -Wextra shape-reduced.f90 mac56:~/gfortran/bugs/shape-bug 16> cat shape-reduced.f90 real, allocatable :: x(:,:) allocate (x(3,2),source=99.) print *, shape (x / 10.0) end mac56:~/gfortran/bugs/shape-bug 17> ./a.out 3 2