Re: [Patch] Fortran: Fix same_type_as

2021-09-29 Thread Harald Anlauf via Fortran
Hi Tobias, Am 29.09.21 um 09:48 schrieb Tobias Burnus: Early ping ;-)  – but actually I do want to explain some parts of my patch, what I forgot in my first patch email. Note that while "class(t)" is of declared type when unallocated/unassociated, "class(*)" is not. Thus, when unassociated/unal

[PATCH, part 2] PR 102458 - issues with simplification of SIZE intrinsic applied to automatic arrays

2021-09-29 Thread Harald Anlauf via Fortran
Dear Fortranners, I think I have solved the remaining issue in PR 102458 that prevented the simplification of an expression involving a static initialization and the evaluation of the SIZE of an automatic array which has provable constant size. My previous related query to the ML has thus become

[Patch] Fortran: Avoid var initialization in interfaces [PR54753]

2021-09-29 Thread Tobias Burnus
Found when looking at F2018:C839 / PR54753. For INTENT(OUT) the dummy variable (might) also be default initialized or deallocated. However, with assumed rank, that causes issues, which C839 prevents. In the current GCC implementation, missing C839 constraint diagnostic, but also rejects-valid/ice

Re: [Patch] Fortran: Fix same_type_as

2021-09-29 Thread Tobias Burnus
Early ping ;-) – but actually I do want to explain some parts of my patch, what I forgot in my first patch email. Note that while "class(t)" is of declared type when unallocated/unassociated, "class(*)" is not. Thus, when unassociated/unallocated, "same_type_as(class_star, class_star)" is .false

Re: Executable on Apple M1 and Apple Intel

2021-09-29 Thread Iain Sandoe
Hello Heiner. > On 29 Sep 2021, at 08:04, Heiner Veelken via Fortran > wrote: > This is my first post; kindly inform me, if I did anything wrong :-) > I am using gfortran (M1) from hpc.sourceforge.net > on my Apple Macbook Pro M1. I just create my > executable vi

Executable on Apple M1 and Apple Intel

2021-09-29 Thread Heiner Veelken via Fortran
Dear Fortran guys! This is my first post; kindly inform me, if I did anything wrong :-) I am using gfortran (M1) from hpc.sourceforge.net on my Apple Macbook Pro M1. I just create my executable via: gfortran Pmain.f psub.F -o prog_m1 This only works on my machine.