From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26988 invoked by alias); 15 Jan 2015 13:24:20 -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 26967 invoked by uid 48); 15 Jan 2015 13:24:12 -0000 From: "ql.le at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64613] New: allocatable array after 4.7 Date: Thu, 15 Jan 2015 13:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ql.le at hotmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg01340.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64613 Bug ID: 64613 Summary: allocatable array after 4.7 Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: ql.le at hotmail dot com A small code to test: ``` integer :: x(2,3) integer, allocatable :: y(:,:) allocate(y(2,3)) x =3D reshape([1,2,3,4,5,6], [2,3], order=3D[2,1]) y =3D reshape([1,2,3,4,5,6], [2,3], order=3D[2,1]) print *, 'x', transpose(x) print *, 'y', transpose(y) end ``` On 4.7, gdb works fine with both x and y ``` [qlle@(none) ~]$ gdb --version | head -n1 GNU gdb (GDB) Fedora (7.4.50.20120120-54.fc17) [qlle@(none) ~]$ gfortran --version | head -n1 GNU Fortran (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2) (gdb) i lo x =3D (( 1, 4) ( 2, 5) ( 3, 6) ) y =3D (( 1, 4) ( 2, 5) ( 3, 6) ) (gdb) p y(:,2) $1 =3D (2, 5) (gdb) p y(2,:) $2 =3D (4, 5, 6) (gdb) show language=20 The current source language is "auto; currently fortran". ``` However on 4.9, `` was shown instead: ``` ~/Downloads=E2=9D=AF gdb --version | head -n 1 GNU gdb (GDB) 7.8.1 ~/Downloads=E2=9D=AF gfortran --version | head -n1 GNU Fortran (Homebrew gcc 4.9.2_1) 4.9.2 ~/Downloads=E2=9D=AF gdb a.out ... (gdb) break 9 Breakpoint 1 at 0x100000b41: file alloc.f90, line 9. run ... (gdb) info locals x =3D (( 1, 4) ( 2, 5) ( 3, 6) ) y =3D ``` >>From gcc-bugs-return-473347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 13:25:24 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28278 invoked by alias); 15 Jan 2015 13:25:23 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28206 invoked by uid 48); 15 Jan 2015 13:25:15 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64310] libgcc2.c:2051:1: internal compiler error: in curr_insn_transform, at lra-constraints.c:3383 Date: Thu, 15 Jan 2015 13:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: RESOLVED 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: bug_status resolution 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-01/txt/msg01341.txt.bz2 Content-length: 446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64310 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Ramana Radhakrishnan --- Fixed then....