[Patch, Fortran] Allow ref'ing PDT's len() in parameter-initializer [PR102003]

2023-07-10 Thread Andre Vehreschild via Fortran
Hi all, while browsing the pdt meta-bug I came across 102003 and thought to myself: Well, that one is easy. How foolish of me... Anyway, the solution attached prevents a pdt_len (or pdt_kind) expression in a function call (e.g. len() or kind()) to mark the whole expression as a pdt one. The secon

Re: [Patch, Fortran] Allow ref'ing PDT's len() in parameter-initializer [PR102003]

2023-07-10 Thread Harald Anlauf via Fortran
Hi Andre, thanks for looking into this! While it fixes the original PR, here is a minor extension of the testcase that ICEs here with your patch: program pr102003 type pdt(n) integer, len :: n = 8 character(len=n) :: c end type pdt type(pdt(42)) :: p integer, parameter ::

Re: [Patch, Fortran] Allow ref'ing PDT's len() in parameter-initializer [PR102003]

2023-07-10 Thread Andre Vehreschild via Fortran
Hi Harald, I do get why this happens. I still don't get why I have to do this 'optimization' manually. I mean, this rewriting of expressions is needed in more than one location and most probably already present somewhere. So who can point me in the right direction? Regards, Andre Andre Vehresch

Present, Publish, Participate - 2023, Bulgaria

2023-07-10 Thread Science & Education Network via Fortran
Dear Colleagues, I invite you to participate in six international scientific conferences ( https://sci-edu.org/2023 ) that will take place in the beautiful city of Burgas, Bulgaria, from August 14th to August 26th. The conferences will cover various topics, including agriculture and food, eco

Can't get the horse out of the gate

2023-07-10 Thread Guy Daniels III via Fortran
Hi and thx in adv. Started this tut , have TDM-GCC 10.3.0-2 and Notepad++, am trying diff extensions (.f90, .f03, etc) but nothing giving. What am I missing? -- *"Make the best of your time while you're here"*

Re: Can't get the horse out of the gate

2023-07-10 Thread Arjen Markus via Fortran
You might be better asking a question on comp.lang.fortran newsgroup or the Fortran discourse site (https://fortran-lang.discourse.group/). This mailing list is specifically for the gfortran compiler, not user questions. Also, I might add, the title and the contents of your message may be understa