From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57832 invoked by alias); 25 Mar 2015 20:07:34 -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 57798 invoked by uid 48); 25 Mar 2015 20:07:30 -0000 From: "mandrew9 at vt dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65571] New: [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object Date: Wed, 25 Mar 2015 20:20: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.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mandrew9 at vt dot edu 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 attachments.created 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-03/txt/msg02852.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65571 Bug ID: 65571 Summary: [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mandrew9 at vt dot edu Created attachment 35140 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35140&action=3Dedit small test case (source code) Description:=20 Create a derived type object (test_t) that contains an array of a derived t= ype (arraylist_t). This derived type (arraylist_t) contains an allocatable arra= y. Whenever the object is referenced (as in test_routine), an ICE is thrown. Replacing the allocatable array in the derived type (arraylist_t) with an explicit shape array (as shown below) allows the module to compile. test_mod.f95 (Also attached): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D module test_mod implicit none type :: arraylist_t real, allocatable :: array(:) ! real :: array(5) end type arraylist_t type :: test_t type(arraylist_t) :: test_list(3) contains procedure :: test_routine end type test_t contains subroutine test_routine(test_var) class(test_t), intent(in) :: test_var continue ! Do stuff end subroutine test_routine end module test_mod =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Compiler: gcc version 4.9.2 (Ubuntu 4.9.2-0ubuntu1~14.04) System: Ubuntu 14.04 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Command line: gfortran test_mod.f95 Output: test_mod.f95: In function =E2=80=98__final_test_mod_Test_t=E2=80=99: test_mod.f95:22:0: internal compiler error: in gfc_conv_descriptor_data_get= , at fortran/trans-array.c:145 end module test_mod ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 4.9.2-0ubuntu1~14.04' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.9/README.= Bugs --enable-languages=3Dc,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.9 --enable-shared --enable-linker-build-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.9 --libdir=3D/usr/lib --enable-= nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-gnu-unique-object --disable-vtable-v= erify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-= home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ecj.= jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu >>From gcc-bugs-return-481709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 25 20:08:14 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59075 invoked by alias); 25 Mar 2015 20:08:14 -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 59021 invoked by uid 48); 25 Mar 2015 20:08:11 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63657] [4.9 regression] -Wunused-variable: warning supressed by virtual dtor Date: Wed, 25 Mar 2015 20:28: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.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-03/txt/msg02853.txt.bz2 Content-length: 451 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63657 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |galdralag at bk dot ru --- Comment #11 from Paolo Carlini --- *** Bug 61935 has been marked as a duplicate of this bug. ***