On 2016/1/25 7:06 PM, Jakub Jelinek wrote:
> The following ICEs without the patch and works with it, so I think it is
> better:
> 
> 2016-01-25  Jakub Jelinek  <ja...@redhat.com>
> 
>       * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
>       DECL_VALUE_EXPR of new_var even for the non-array case.  Look
>       through DECL_VALUE_EXPR for expansion.
> 
>       * c-c++-common/goacc/use_device-1.c: New test.

Thanks, the test was indeed just a reduction of a whole example program, which 
I'm not sure
we're at liberty to directly include in the testsuite. I've verified that the 
patch
allows the program to build and run correctly.

Thanks,
Chung-Lin

Reply via email to