https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105019
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> --- Creating a CUDA example is hampered by the fact that there's no symbol alias support, AFAICT. I'd like to write something like: ... __device__ void __foo () { printf ("__foo\n"); } __device__ void foo () __attribute__((alias ("__foo"))); __device__ void bar () { foo (); } __global__ void hello_world () { bar (); } ... (and then comment out bar to reproduce the problem), but all attempts to get this compiled and executed end up in various errors. Of course we can resort to hand-edited ptx, or adding .alias directives in asm statements, but that's likely to produce an 'unsupported' response by nvidia when filed as bug report.