musttail attribute on a function with not_tail_called attribute has no warning/error that musttail is ignored · Issue #133509 · llvm/llvm-project (original) (raw)

Take:

int __attribute__((not_tail_called)) foo1(int);

int foo2(int a) {
  [[clang::musttail]]
  return foo1(a);
}

There is NO diagnostic saying musttail is being ignored due to the conflict of not_tail_called attribute.