[Bug libfortran/95293] Fortran not passing array by reference

2020-12-07 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 Dominique d'Humieres changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug libfortran/95293] Fortran not passing array by reference

2020-12-02 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #11 from Thomas Koenig --- (In reply to Dominique d'Humieres from comment #10) > Could this PR be closed as INVALID? Yes, I think so.

[Bug libfortran/95293] Fortran not passing array by reference

2020-12-02 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #10 from Dominique d'Humieres --- Could this PR be closed as INVALID?

[Bug libfortran/95293] Fortran not passing array by reference

2020-07-08 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #9 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #8) > Isn't it an aliasing problem? No. It is not an aliasing problem. It is an invalid program giving a result that the programmer does not

[Bug libfortran/95293] Fortran not passing array by reference

2020-07-08 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-24 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #7 from Steve Kargl --- On Sun, May 24, 2020 at 02:45:32PM +, david.sagan at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 > > --- Comment #6 from David Sagan --- > > program foo > >real x > >

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-24 Thread david.sagan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #6 from David Sagan --- > program foo >real x >x = 42 >call bar(x) >print *, x >contains > subroutine bar(a) > real, intent(inout) :: a > a = 12 > x = 0 > end subroutine bar > end

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-24 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #5 from Steve Kargl --- On Sun, May 24, 2020 at 06:47:18AM +, tkoenig at gcc dot gnu.org wrote: > > and the effective argument has the TARGET attribute > > That I will have to look up; if a has the TARGET attribute, > does a%b

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #4 from Thomas Koenig --- Time to dig out the F2018 standard... 15.5.2.4 Ordinary dummy variables 9 If the dummy argument has the TARGET attribute That's fulfilled does not have the VALUE attribute, That's fulfilled. and either

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-23 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #3 from Steve Kargl --- On Sat, May 23, 2020 at 10:43:23PM +, david.sagan at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 > > --- Comment #2 from David Sagan --- > The gcc documentation says: > >

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-23 Thread david.sagan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 --- Comment #2 from David Sagan --- The gcc documentation says: ‘array-temps’ Warns at run time when for passing an actual argument a temporary array had to be generated. The information generated by this warning is sometimes useful in

[Bug libfortran/95293] Fortran not passing array by reference

2020-05-23 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95293 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---