public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/36492] incorrect error when compiling
Date: Fri, 13 Jun 2008 18:11:00 -0000	[thread overview]
Message-ID: <20080613181046.9169.qmail@sourceware.org> (raw)
In-Reply-To: <bug-36492-15125@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from burnus at gcc dot gnu dot org  2008-06-13 18:10 -------
OK, I can reproduce it now. Workaround: Replacing -std=f2003 by -std=gnu.

First program, causes an ICE. g95 prints
"Error: Symbol 'max_fld_hed' at (1) has no IMPLICIT type"
------------------------------------------------------
MODULE WinData
  IMPLICIT NONE
  INTEGER (1), PARAMETER :: MAXFLD = 25_1, MAXHED = 5_1, MAXCHR = 80_1
  integer :: i
  TYPE TWindowData
    CHARACTER (MAX_FLD_HED, 1) :: DWFdHd(MAXFLD) = [(" ", i = 1, MAXFLD)]
  END TYPE TWindowData
END MODULE WinData
------------------------------------------------------

Reduced test case - compile with -std=f2003
------------------------------------------------------
INTEGER, PARAMETER ::  len = 40
type t
character (len, 1) :: DWFdHd(1) = [(" ", i = 1, 1)]
end type t
end
------------------------------------------------------
Error: The CHARACTER elements of the array constructor at (1) must have the
same length (1/40)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic, ice-on-invalid-
                   |                            |code
   Last reconfirmed|0000-00-00 00:00:00         |2008-06-13 18:10:46
               date|                            |


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


  parent reply	other threads:[~2008-06-13 18:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 18:08 [Bug fortran/36492] New: " clerman at fuse dot net
2008-06-11  5:37 ` [Bug fortran/36492] " burnus at gcc dot gnu dot org
2008-06-12 13:11 ` clerman at fuse dot net
2008-06-13 18:11 ` burnus at gcc dot gnu dot org [this message]
2008-06-13 20:26 ` burnus at gcc dot gnu dot org
2008-06-13 20:36 ` d at domob dot eu
2008-06-18 13:57 ` domob at gcc dot gnu dot org
2008-06-20 20:32 ` clerman at fuse dot net
2008-06-21  8:00 ` domob at gcc dot gnu dot org
2008-06-21  8:44 ` burnus 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=20080613181046.9169.qmail@sourceware.org \
    --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).