Re: Re: [PATCH, OpenACC, Fortran] Fix PR77371, ICE on allocatable

2016-10-03 Thread Cesar Philippidis
On 10/03/2016 07:59 AM, Jakub Jelinek wrote: > with -fopenmp. The var is actually properly allocatable in the latter case, > while it is not with your patch on the first testcase, you just copy over the > host pointer, that > is definitely not going to work on non-shared memory offloading. I th

Re: [PATCH, OpenACC, Fortran] Fix PR77371, ICE on allocatable

2016-10-03 Thread Jakub Jelinek
On Sun, Oct 02, 2016 at 06:15:18PM +0800, Chung-Lin Tang wrote: > This patch fixes the two ICEs listed on PR77371. > One is due to the Fortran omp_privatize_by_reference hook returning true > for types like 'character(kind=1)[1:XX] *', causing them to be processed > by the path intended for C++ ref

[PATCH, OpenACC, Fortran] Fix PR77371, ICE on allocatable

2016-10-02 Thread Chung-Lin Tang
Hi Jakub, This patch fixes the two ICEs listed on PR77371. One is due to the Fortran omp_privatize_by_reference hook returning true for types like 'character(kind=1)[1:XX] *', causing them to be processed by the path intended for C++ reference types. The other one is simply not setting 'remove = t