public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ohl at physik dot uni-wuerzburg dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45081]  New: ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208
Date: Mon, 26 Jul 2010 15:13:00 -0000	[thread overview]
Message-ID: <bug-45081-17857@http.gcc.gnu.org/bugzilla/> (raw)

The following code, with default options,

  module m
    implicit none
    type t
      integer :: i
    end type t
    type(t), dimension(1), parameter :: a1  = (/ t(1) /)
    type(t), dimension(1), parameter :: a = reshape ( (/ a1 /), (/ 1 /) )
  end module m

triggers:

  f951: internal compiler error: in gfc_conv_array_initializer, at
fortran/trans-array.c:4208

in

  GNU Fortran (GCC) 4.6.0 20100726 (experimental)

The code compiles with the NAG compiler, as it should.  gfortran also compiles
the equivalent code for INTEGERS instead of the derived type.

Maybe there is a relation to bug #44742.


-- 
           Summary: ICE in gfc_conv_array_initializer, at fortran/trans-
                    array.c:4208
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ohl at physik dot uni-wuerzburg dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45081


             reply	other threads:[~2010-07-26 15:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 15:13 ohl at physik dot uni-wuerzburg dot de [this message]
2010-07-26 15:22 ` [Bug fortran/45081] " dominiq at lps dot ens dot fr
2010-07-26 17:31 ` [Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu dot org
2010-07-26 20:20 ` burnus at gcc dot gnu dot org
2010-07-27  6:04 ` burnus at gcc dot gnu dot org
2010-07-27  6:56 ` dominiq at lps dot ens dot fr
2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
2010-08-17 12:07 ` pault at gcc dot gnu dot org
2010-08-30 15:52 ` rguenth at gcc dot gnu dot org
2010-09-16  5:12 ` pault at gcc dot gnu dot org
2010-09-16  7:07 ` dominiq at lps dot ens dot fr
2010-09-16  9:43 ` paul dot richard dot thomas at gmail dot com
2010-09-16 13:14 ` dominiq at lps dot ens dot fr
2010-09-20 18:55 ` pault at gcc dot gnu dot org
2010-09-20 21:24 ` pault at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-45081-17857@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).