public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66545] ICE on using undefined parameter/variable values
Date: Mon, 15 Jun 2015 17:20:00 -0000	[thread overview]
Message-ID: <bug-66545-4-dkffmkJ0uq@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-66545-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Trivially, the following cases behave similar :


$ cat z1_real.f90
program p
   real, parameter :: c1 = (c1)
   real, parameter :: c2 = c2
   real :: c3 = (c3)
   real :: c4 = c4
   real :: c5
   real :: c6
   c5 = (c5)
   c6 = c6
end


$ cat z1_integer.f90
program p
   integer, parameter :: c1 = (c1)
   integer, parameter :: c2 = c2
   integer :: c3 = (c3)
   integer :: c4 = c4
   integer :: c5
   integer :: c6
   c5 = (c5)
   c6 = c6
end


$ cat z1_logical.f90
program p
   logical, parameter :: c1 = (c1)
   logical, parameter :: c2 = c2
   logical :: c3 = (c3)
   logical :: c4 = c4
   logical :: c5
   logical :: c6
   c5 = (c5)
   c6 = c6
end


$ cat z1_character.f90
program p
   character, parameter :: c1 = (c1)
   character, parameter :: c2 = c2
   character :: c3 = (c3)
   character :: c4 = c4
   character :: c5
   character :: c6
   c5 = (c5)
   c6 = c6
end


$ cat z1_type.f90
program p
   type t; end type
   type(t), parameter :: c1 = (c1)
   type(t), parameter :: c2 = c2
   type(t) :: c3 = (c3)
   type(t) :: c4 = c4
   type(t) :: c5
   type(t) :: c6
   c5 = (c5)
   c6 = c6
end


  reply	other threads:[~2015-06-15 17:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 17:19 [Bug fortran/66545] New: " gerhard.steinmetz.fortran@t-online.de
2015-06-15 17:20 ` gerhard.steinmetz.fortran@t-online.de [this message]
2015-06-15 19:03 ` [Bug fortran/66545] " gerhard.steinmetz.fortran@t-online.de
2015-06-15 20:12 ` tkoenig at gcc dot gnu.org
2015-06-15 20:28 ` kargl at gcc dot gnu.org
2015-06-15 21:19 ` tkoenig at gcc dot gnu.org
2015-06-15 21:35 ` sgk at troutmask dot apl.washington.edu
2015-06-16 19:59 ` tkoenig at gcc dot gnu.org
2015-07-02 17:02 ` kargl at gcc dot gnu.org
2015-07-16 19:04 ` kargl at gcc dot gnu.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-66545-4-dkffmkJ0uq@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).