https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789
--- Comment #18 from Harald Anlauf <anlauf at gmx dot de> --- (In reply to Paul Thomas from comment #12) > (In reply to Harald Anlauf from comment #11) > > (In reply to paul.richard.tho...@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. > > Hmmm! The F2018 standard is almost obfusticating about argument association > with contiguous dummies. I will wade through the pertinent sections tonight. > > Paul FWIW: Crayftn, Intel, PGI, NAG all accept the code without complaining and seem to do the packing/unpacking.