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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is a better example:

```
void f(int *);

inline __attribute__((always_inline))  void h(int *b)
{
    [[clang::musttail]] 
    return f(b);
}

void g(int *b)
{
  int a;
  h(&a);
  [[clang::musttail]] 
  return h(b);
}
```

clang accepts this and preservees the musttail on the last h. BUT note this
will be rejected by GCC because a escapes still (which I think it is a good
thing).

Reply via email to