[Bug fortran/85868] Subarray of a pointer array associated with a pointer dummy argument
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Tue May 22 21:37:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85868
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> ---
According to NAG, the example is supposedly valid F2008, but invalid F2003:
% nagfor pr85868.f90 -f2003
NAG Fortran Compiler Release 6.2(Chiyoda) Build 6207
Extension: pr85868.f90, line 16: Argument A (no. 1) of TE is a pointer but
actual argument T(1:,:) has the TARGET attribute
[NAG Fortran Compiler normal termination, 1 warning]
% nagfor pr85868.f90 -f2008
NAG Fortran Compiler Release 6.2(Chiyoda) Build 6207
[NAG Fortran Compiler normal termination]
% ./a.out
1.0000000
Re comment #1, I think it is unrelated to the other PR.
More information about the Gcc-bugs
mailing list