From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29897 invoked by alias); 26 Mar 2014 18:29:48 -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 29851 invoked by uid 48); 26 Mar 2014 18:29:44 -0000 From: "matthew.thompson at nasa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment Date: Wed, 26 Mar 2014 18:29: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.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matthew.thompson at nasa dot gov 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg02447.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59093 --- Comment #5 from Matt Thompson --- An additional thought. You have a reduced test case which dies in Comment #3 (which fails for gfortran 4.9). However, you can make something similar whi= ch succeeds: **** program main implicit none type :: MAPL_LocStream type(MAPL_LocStreamType), pointer :: Ptr end type type MAPL_Tiling integer :: IM end type type MAPL_LocStreamType type(MAPL_Tiling), pointer :: Tiling(:) end type contains subroutine MAPL_LocStreamGet (GRIDIM) type(MAPL_LocStream) :: LocStream integer, pointer :: GRIDIM(:) integer, pointer :: LP(:) LP =3D> LocStream%Ptr%Tiling(:)%IM end subroutine end program main **** So, it's not that gfortran/gcc can't do the pointer, it's that it can't do = it to a pointer passed through the interface. Note that this still fails: **** program main implicit none type :: MAPL_LocStream type(MAPL_LocStreamType), pointer :: Ptr end type type MAPL_Tiling integer :: IM end type type MAPL_LocStreamType type(MAPL_Tiling), pointer :: Tiling(:) end type contains subroutine MAPL_LocStreamGet (GRIDIM) type(MAPL_LocStream) :: LocStream integer, pointer :: GRIDIM(:) integer, pointer :: LP(:) LP =3D> LocStream%Ptr%Tiling(:)%IM GRIDIM =3D> LP end subroutine end program main **** with: $ gfortran --version GNU Fortran (GCC) 4.9.0 20140105 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING $ gfortran test.fix.F90 test.fix.F90: In function =E2=80=98mapl_locstreamget=E2=80=99: test.fix.F90:26:0: internal compiler error: Segmentation fault GRIDIM =3D> LP ^ 0x50ff58 ??? ../sysdeps/x86_64/elf/start.S:113 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-447579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 26 18:32:30 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31823 invoked by alias); 26 Mar 2014 18:32:30 -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 31790 invoked by uid 48); 26 Mar 2014 18:32:27 -0000 From: "david.abdurachmanov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60675] [4.9 regression][aarch64] internal compiler error: Max. number of generated reload insns per insn is achieved (90) Date: Wed, 26 Mar 2014 18:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.abdurachmanov at gmail 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: 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/msg02448.txt.bz2 Content-length: 166 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60675 --- Comment #3 from David Abdurachmanov --- With `-mno-lra` compiles fine.