pinned data

The document said that pinned data must be allocatable array. However, the compiler doesn’t generate any warning/error msg when I declare it as a scalar pinned data.
I’m not sure how the compiler handles this?

Tuan.

Hi Tuan,

We recently added allocatable scalars in which case the variable’s memory would be pinned. For non-allocatable variables, scalar or array, then the pinned attribute is simply ignored. Maybe we should issue a warning? I’ll send it on to engineering for their recommendation.

Thanks,
Mat