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] PR fortran/101762 - ICE on non-constant pointer initialization targets
Date: Sun, 9 Jan 2022 20:28:02 +0100 [thread overview]
Message-ID: <2dc8af68-7122-a788-4808-f43486d33d72@orange.fr> (raw)
In-Reply-To: <trinity-fb0fd7f0-ad1b-4db4-95d9-671165a76485-1641239138358@3c-app-gmx-bs48>
Le 03/01/2022 à 20:45, Harald Anlauf via Fortran a écrit :
> Dear all,
>
> the initial-data-target for a pointer initialization can be either
> NULL() or a non-constant target. In the latter case subscripts of
> the target specification (or substring starting and ending points)
> must be constant expressions. The patch adds corresponding checks.
>
> I have verified that current Intel and Cray compilers generate similar
> errors for the testcase.
>
> Regtested on x86_64-pc-linux-gnu. OK for mainline?
>
Hello,
There is gfc_check_pointer_assign which does already various checks
relating to pointer assignment, and those with is_init_expr == true
could be tightened a bit.
OK with your additional checks moved there.
Thanks.
next prev parent reply other threads:[~2022-01-09 19:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-03 19:45 Harald Anlauf
2022-01-09 19:28 ` Mikael Morin [this message]
2022-01-09 21:13 ` Harald Anlauf
2022-01-09 21:13 ` Harald Anlauf
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=2dc8af68-7122-a788-4808-f43486d33d72@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).