Hi Thomas, On 10/15/19 12:59 PM, Thomas König wrote:
What about using gfc_is_not_contigous? This would allow to issue an error when we can prove the user made an error.
Most clauses take only an identifiers (i.e. "sym" not "expr"). The gfc_is_not_contiguous check only returns true if there is an explicit array reference with strides. – All current callees only have "sym" (or in one case an expr which is only an identifier).
However, it might be useful for the few places like OpenMP's "map" clause which also permit array section. I will try to remember this rather new function (added Jan 2019) when adding some constraint checks.
Thanks, Tobias