public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/65571] New: [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object
@ 2015-03-25 20:20 mandrew9 at vt dot edu
  2015-03-26 10:56 ` [Bug fortran/65571] " dominiq at lps dot ens.fr
  0 siblings, 1 reply; 2+ messages in thread
From: mandrew9 at vt dot edu @ 2015-03-25 20:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65571

            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=35140&action=edit
small test case (source code)

Description: 
Create a derived type object (test_t) that contains an array of a derived type
(arraylist_t). This derived type (arraylist_t) contains an allocatable array.
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):
========================================
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
========================================
Compiler:     gcc version 4.9.2 (Ubuntu 4.9.2-0ubuntu1~14.04)
System:       Ubuntu 14.04
========================================
Command line: gfortran test_mod.f95
Output:
test_mod.f95: In function ‘__final_test_mod_Test_t’:
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 <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
========================================
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.9.2-0ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_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: <gcc-bugs-return-481709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-63657-4-etXOu01wZb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63657-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63657-4@http.gcc.gnu.org/bugzilla/>
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?idc657

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |galdralag at bk dot ru

--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 61935 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/65571] [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object
  2015-03-25 20:20 [Bug fortran/65571] New: [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object mandrew9 at vt dot edu
@ 2015-03-26 10:56 ` dominiq at lps dot ens.fr
  0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-03-26 10:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65571

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed on 4.9.x, but the test compiles for me on 4.8.x and trunk (5.0,
various revisions and patch status).

I think it is a duplicate of pr64932 and it has been fixed at r 220654 on trunk
and r 220659 for 4.9.

*** This bug has been marked as a duplicate of bug 64932 ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-26 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 20:20 [Bug fortran/65571] New: [4.8/4.9 Regression] ICE for array of a derived type with allocatable array in derived type object mandrew9 at vt dot edu
2015-03-26 10:56 ` [Bug fortran/65571] " dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).