https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |nvptx --- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Hmm, try -fno-exceptions? It might be because of SJLJ EH - what target are you offloading to? I suppose nvptx? Try declaring sqrt as noexcept (or nothrow, don't know C++ enough off-head).