public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/99139] ICE: gfc_get_default_type(): Bad symbol '__tmp_UNKNOWN_0_rank_1'
Date: Wed, 17 Feb 2021 18:13:49 +0000	[thread overview]
Message-ID: <bug-99139-4-X2c4tgrW8t@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99139-4@http.gcc.gnu.org/bugzilla/>

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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

This variant compiles ...

$ cat z0.f90
subroutine s(x)
   real, target :: x(..)
   select rank (y => x)
   rank (1)
   rank (2)
   end select
end

$ gfortran-11-20210214 -c z0.f90
$


... with one exception :

$ gfortran-11-20210214 -c z0.f90 -finit-local-zero  # or -finit-real=snan
z0.f90:3:22:

    3 |    select rank (y => x)
      |                      1
Error: Assumed-rank variable y at (1) may only be used as actual argument

  reply	other threads:[~2021-02-17 18:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-17 18:12 [Bug fortran/99139] New: " gscfq@t-online.de
2021-02-17 18:13 ` gscfq@t-online.de [this message]
2021-02-17 19:49 ` [Bug fortran/99139] " kargl at gcc dot gnu.org
2021-02-18  8:42 ` marxin at gcc dot gnu.org
2021-10-24  5:51 ` sandra at gcc dot gnu.org
2023-05-28 15:29 ` kargl at gcc dot gnu.org
2023-07-08 17:13 ` cvs-commit at gcc dot gnu.org
2023-07-14 18:54 ` anlauf at gcc dot gnu.org
2023-07-15  6:15 ` pault at gcc dot gnu.org
2023-07-15  7:50 ` sgk at troutmask dot apl.washington.edu

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-99139-4-X2c4tgrW8t@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).