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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Similar:
* PR71536 – *ICE* with *unused* static variable in declare-target function

Richard wrote in
https://gcc.gnu.org/pipermail/gcc-patches/2020-April/544905.html
> IIRC there was a bugreport similar to this where offload
> variables were computed "early" instead of at the point
> of streaming.
>
> It's obvious that the offload "part" use is not reflected in
> the non-offloat "part" IL (like via a function call parameter
> or so), so I assume this is a local static in a function
> we simply compile twice (but did not actually clone),
> once for each offloat target and once for the host.  So it's
> likely the above issue.

Reply via email to