public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/13253] New: [gfortran] ICE when using DIMENSION
Date: Mon, 01 Dec 2003 02:44:00 -0000	[thread overview]
Message-ID: <20031201024407.13253.dann@godzilla.ics.uci.edu> (raw)

With: gcc version 3.5-tree-ssa 20031130 (merged 20031123)

test.f90:

MODULE mymod
  TYPE :: MYTYPE
     CHARACTER(12),  DIMENSION(3) :: FIELD
  END TYPE MYTYPE
  TYPE (MYTYPE) :: MYVALUE
END MODULE mymod

SUBROUTINE MYSUB (MYARG)
  USE mymod;
END SUBROUTINE MYSUB


gfortran -c test.f90       
test.f90:0: internal compiler error: in gfc_get_dtype_cst, at
fortran/trans-types.c:585
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

If "DIMENSION(3)" is deleted,the code compiles fine.

Intel's compiler compiles the above code.

Code like this appears in SPEC2000

-- 
           Summary: [gfortran] ICE when using DIMENSION
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


             reply	other threads:[~2003-12-01  2:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01  2:44 dann at godzilla dot ics dot uci dot edu [this message]
2003-12-01  2:47 ` [Bug fortran/13253] " pinskia at gcc dot gnu dot org
2003-12-01 20:57 ` pbrook at gcc dot gnu dot org
2004-01-05 19:00 ` pinskia at gcc dot gnu dot org
2004-01-05 19:00 ` pinskia at gcc dot gnu dot org
2004-01-20 15:47 ` [Bug fortran/13253] [gfortran] ICE when using DIMENSION and CHARACTER pbrook at gcc dot gnu dot org
2004-01-22  6:57 ` lei at il dot ibm dot com
2004-02-27 17:57 ` pbrook at gcc dot gnu dot org
2004-04-04 23:33 ` pbrook 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=20031201024407.13253.dann@godzilla.ics.uci.edu \
    --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).