llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

OMP map clause restriction change from 4.5 to 5.0 on "list iterms of map clause in the same construnct must not share original storge"

Open jyu2-git opened this issue 6 years ago • 0 comments

Bugzilla Link 47368
Version 5.0
OS All

Extended Description

OMP 4.5:

List items of map clauses in the same construct must not share original storage.

OMP 5.0:

List items of the map clauses on the same construct must not share original storage unless they are the same lvalue expression or array section.

So we should allow:

int scalar = 80; #pragma omp target map (alloc: scalar) map(to: scalar)

jyu2-git avatar Aug 31 '20 16:08 jyu2-git