On Tue, Aug 25, 2020 at 05:33:08PM +0200, Tobias Burnus wrote:
> Improve the error message. Currently code like:
> 
> void test (double src[100])
> {
>   #pragma omp target map(alloc:src[:])
> 
> fails with the surprising
>  "for pointer type length expression must be specified"
> as "double src[100]" is regarded as "double *src".
> 
> Thus, one cannot simply extract the "100" and internally
> replace src[:] by src[0:100].
> 
> However, by talking about "array function parameter",
> I think the error message is at least a bit clearer.
> 
> OK?

LGTM, thanks.

        Jakub

Reply via email to