https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103276

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Yuri Gribov from comment #0)
> Here hostaddrs[1] points to a spurious variable in current stack frame.
> 
> Gimple code seems to be correct
>   voidD.27 copyin_simple (struct simple & restrict varD.3961)
>   { 
>     struct .omp_data_t.1D.3962 D.3965;
>     ...
>     # .MEM_4 = VDEF <.MEM_3>
>     D.3965.varD.3964 = &varD.3961;

No the gimple is wrong.  &var is taking the address of the argument. It should
just be var here if you what the reference points to rather than the address of
the decl holding the pointer.

Reply via email to