public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Harald Anlauf <anlauf@gmx.de>
To: Andre Vehreschild <vehre@gmx.de>
Cc: GCC-Patches-ML <gcc-patches@gcc.gnu.org>,
	GCC-Fortran-ML <fortran@gcc.gnu.org>,
	Paul Richard Thomas <paul.richard.thomas@gmail.com>
Subject: Re: [Patch, Fortran] Allow ref'ing PDT's len() in parameter-initializer [PR102003]
Date: Tue, 11 Jul 2023 23:09:41 +0200	[thread overview]
Message-ID: <7f431828-bfd6-2c4b-2e52-6d8fea84417f@gmx.de> (raw)
In-Reply-To: <20230711182352.0e59f735@vepi2>

Hi Andre,

I forgot to answer your other question:

Am 11.07.23 um 18:23 schrieb Andre Vehreschild via Gcc-patches:
> I tried to use a pdt within a derived type as a component. Is that not allowed
> by the standard? I know, I could hunt in the standard for it, but when someone
> knows out of his head, he could greatly help me out.

You mean something like the following is rejected with a strange error:

  type pdt(n)
      integer, len     :: n = 8
      character(len=n) :: c
   end type pdt
   type t
      type(pdt(42)) :: q
   end type t
   type(t) :: u
end


pr102003.f90:1:10:

     1 |   type pdt(n)
       |          1
Error: Cannot convert TYPE(Pdtpdt) to TYPE(pdt) at (1)


ISTR that there is an existing PR...


      parent reply	other threads:[~2023-07-11 21:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10 15:48 Andre Vehreschild
2023-07-10 18:55 ` Harald Anlauf
2023-07-10 19:21   ` Andre Vehreschild
2023-07-11 16:23   ` Andre Vehreschild
2023-07-11 20:24     ` Harald Anlauf
2023-07-12 11:37       ` [Patch, Fortran, committed] " Andre Vehreschild
2023-07-11 21:09     ` Harald Anlauf [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=7f431828-bfd6-2c4b-2e52-6d8fea84417f@gmx.de \
    --to=anlauf@gmx.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=paul.richard.thomas@gmail.com \
    --cc=vehre@gmx.de \
    /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).