[Bug fortran/56789] Wrong code with contiguous dummy argument
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Tue Oct 2 21:57:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #11 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to paul.richard.thomas@gmail.com from comment #10)
> Even if that were allowed, the standard explicitly disallows the
> argument association in the testcase: See 5.3.7 of the F2008 standard.
The wording has changed in F2018 DIS, 8.5.7, paragraph 1:
The CONTIGUOUS attribute specifies that an assumed-shape array is contiguous,
that an array pointer can only be pointer associated with a contiguous target,
or that an assumed-rank dummy data object is contiguous.
In my interpretation, the testcase is valid under F2018, but invalid in F2008.
More information about the Gcc-bugs
mailing list