https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779
--- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Thomas Schwinge from comment #1) > Same for OpenACC ('!$acc parallel copyout(v)'). > > > Thsi sounds similar to PR85063, > <http://mid.mail-archive.com/9e02d449-0c4a-88a8-0aac-1d353d321b74@mentor. > com> "[PATCH, PR85063] Fix switch conversion in offloading functions". There is a certain difference. There, switch conversion introduces a static var, while there is none in the source. This is similar to the test-case in PR84592 comment 5 (where there is a static var in the source). The patch from comment 10 makes that test-case pass.