[Bug fortran/126950] [17 Regression] Wrong code issues with libgomp.fortran/use_device_addr-1.f90 since r17-3342-gf3943597388db4

"jvdelisle at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126950

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #0)
> Since r17-3342-gf3943597388db4 (cf. also PR 126940). the following testcases
> fail with OpenMP offloading to an Nvidia GPU [nvptx] (but oddly not to an
> AMD GPU [gcn]).
> 
> The testcases are believed to be valid.

I have a tentative fix here that I can test host only. I will attach it here
after local testing. I have no idea if it fixes the offloading to Nvidia or
whether it will call problems with AMD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.