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/68152] ICE on declaring array result for function and entry
Date: Thu, 29 Oct 2015 18:23:00 -0000	[thread overview]
Message-ID: <bug-68152-4-dLetArjV4F@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-68152-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Detected with one single defect :


$ cat z2.f90
function f(n)
   integer, intent(in) :: n
   real :: f(n)
   real :: e
entry e(n)
end

$ gfortran -g -O0 -Wall -fcheck=all z2.f90
z2.f90:1:0:

 function f(n)
 1
Error: FUNCTION result f can't be an array in FUNCTION f at (1)

---

$ cat z3.f90
function f(n)
   integer, intent(in) :: n
   real :: f
   real :: e(n)
entry e(n)
end

$ gfortran -g -O0 -Wall -fcheck=all z3.f90
z3.f90:4:15:

    real :: e(n)
               1
Error: ENTRY result e can't be an array in FUNCTION f at (1)


  reply	other threads:[~2015-10-29 18:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29 18:22 [Bug fortran/68152] New: " gerhard.steinmetz.fortran@t-online.de
2015-10-29 18:23 ` gerhard.steinmetz.fortran@t-online.de [this message]
2015-10-29 22:34 ` [Bug fortran/68152] " dominiq at lps dot ens.fr
2023-08-26 14:15 ` mikael at gcc dot gnu.org
2023-08-26 17:04 ` anlauf 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-68152-4-dLetArjV4F@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).