On Thu, Feb 04, 2021 at 12:24:10PM +0100, Tobias Burnus wrote:
> This issue came up when looking at Julian's OpenACC patches
> and by coincidence it was also discussed for OpenMP
> yesterday (lang-spec F2F meeting; Issue #2607).
> 
> OpenACC rather explicitly lists what counts as 'var' and
> substrings do not appear there. While OpenMP is rather
> silent on this issue; I think between the
> lines it can be read that it is not permitted - and
> supporting it will run into many issues. (Hence, the
> agreement that it should not be allowed; wording changes
> still need to be voted on, cf. Issue #2607).
> 
> 
> Without the patch, gfortran gives the
>   Error: ‘str2’ in MAP clause at (1) is not a proper array section
> 
> And with the patch
>   Error: Unexpected substring reference in MAP clause at (1)
> Except, in one OpenMP case, it stops earlier and we get:
>   Error: Syntax error in OpenMP variable list at (1)
> (see testcase)
> 
> OK for mainline?

Ok.

        Jakub

Reply via email to