public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mikael Morin <morin-mikael@orange.fr>
To: Harald Anlauf <anlauf@gmx.de>, fortran <fortran@gcc.gnu.org>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Fortran: reject NULL actual argument without explicit interface [PR107576]
Date: Fri, 18 Nov 2022 12:48:12 +0100	[thread overview]
Message-ID: <d390b783-ebbf-5922-2b91-2709ec6a92d4@orange.fr> (raw)
In-Reply-To: <trinity-9afc12d0-717f-45c1-81cf-6d4fc8d6249e-1668718081298@3c-app-gmx-bap50>

Le 17/11/2022 à 21:48, Harald Anlauf via Fortran a écrit :
> Dear all,
> 
> one cannot pass a NULL actual argument to a procedure without an
> explicit interface.  This is detected and reported by NAG and Intel.
> (Cray accepts this silently, and some other brands ICE.)
> 
> The testcase by Gerhard even tricked gfortran into inconsistent
> behavior which could lead to an ICE with -fallow-argument-mismatch,
> or silently accepting invalid code.
> 
> The solution is to reject such code, see attached patch.
> 
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
> 
OK.

> As this is marked as a regression which started at v7,
> OK for backports to open branches?
> 
OK.

      reply	other threads:[~2022-11-18 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17 20:48 Harald Anlauf
2022-11-18 11:48 ` Mikael Morin [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=d390b783-ebbf-5922-2b91-2709ec6a92d4@orange.fr \
    --to=morin-mikael@orange.fr \
    --cc=anlauf@gmx.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@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).