[PATCH 2/3] Don't allow mixed component and non-component accesses for OpenACC/Fortran

Tobias Burnus tobias@codesourcery.com
Fri Jan 24 15:57:00 GMT 2020


Hi Julian,

On 1/10/20 2:51 AM, Julian Brown wrote:
>> Actually, it does not seem to work if one modifies the test
>> case a bit. The following code compiles – but I think it
>> should not: […]
>> At least the last line has x%A%i twice but it is accepted.
> This bit is fixed by:
>    https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00512.html

(Side remark: that's checked in gimplify_scan_omp_clauses, which is the 
"Duplicate components are detected elsewhere".)

[ https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00088.html ]

> OK again if that one goes in?

OK from my side – but I think those patches are orthogonal, i.e. this 
one can go in without depending on the other one(s).

Tobias



More information about the Fortran mailing list