https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123041

            Bug ID: 123041
           Summary: Assembler names for functions are ignored in templates
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fw at gcc dot gnu.org
  Target Milestone: ---

This

template <int i> void
f1()
{
  extern void f2() __asm__ ("f2");
  f2();
}

void
f3()
{
  f1<0>();
}

produces (with 951f3ccefca097d483aef1f65a283c8c68b73ab6):

_Z2f3v:
        jmp     _Z2f2v

The __asm__ symbol is ignored.

Vaguely similar to bug 33661 and bug 98847.

Reply via email to