public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stanislav Maslovski <stanislav.maslovski@gmail.com>
To: fortran@gcc.gnu.org
Subject: Re: [patch] fortran/intrinsic.texi: Add 'passed by value' to signal handler
Date: Tue, 17 Oct 2023 12:26:21 +0100	[thread overview]
Message-ID: <ZS5vXWvrmac7oRyk@zephyrus.lan> (raw)
In-Reply-To: <a663b83c-356a-410c-871b-1897d12fd76a@codesourcery.com>

Hi,

On Mon, Oct 16, 2023 at 07:11:46PM +0200, Tobias Burnus wrote:
> Yesterday, someone was confused because the signal handler did not work.
> 
> It turned out that the created Fortran procedure used as handler used
> pass by reference - and 'signal' passed the it by value.

Many thanks! Indeed, it was not clear that the argument is passed by
value (although, I could guess that as signal() is modeled on a C
function of the same name...)

-- 
Stanislav Maslovski

      parent reply	other threads:[~2023-10-17 11:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16 17:11 Tobias Burnus
2023-10-16 18:31 ` Harald Anlauf
2023-10-16 18:37   ` Steve Kargl
2023-10-17  7:47   ` [patch] fortran/intrinsic.texi: Improve SIGNAL intrinsic entry (was: [patch] fortran/intrinsic.texi: Add 'passed by value' to signal handler) Tobias Burnus
2023-10-17 17:02     ` [patch] fortran/intrinsic.texi: Improve SIGNAL intrinsic entry Harald Anlauf
2023-10-17 17:36       ` Tobias Burnus
2023-10-17 18:05         ` Harald Anlauf
2023-10-17 11:26 ` Stanislav Maslovski [this message]

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=ZS5vXWvrmac7oRyk@zephyrus.lan \
    --to=stanislav.maslovski@gmail.com \
    --cc=fortran@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).