https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86660
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Tom de Vries from comment #7) > I think fexceptions is not implemented for nvptx. setjmp/longjmp is not > supported on nvptx, so using that variant is not possible. The other > possibility is using dwarf exceptions, but that is not setup. I think it > could be possible to use that for nvptx, but I expect modifications are > needed to deal with propagating exceptions from offloaded to host code. At least in OpenMP, it is required that C++ exceptions are caught within the OpenMP regions they were thrown (or rethrown). So it is enough if exceptions are supported within the nvptx offloaded code.