| Issue |
53087
|
| Summary |
[[musttail]] does not work in trivial noexcept functions
|
| Labels |
clang:frontend
|
| Assignees |
|
| Reporter |
chfast
|
There is no way to use `[[clang::musttail]]` in any `noexcept` function.
```cpp
int call(int) noexcept;
int musttail(int x) noexcept
{
[[clang::musttail]] return call(x);
}
```
https://godbolt.org/z/s9vYzPbqr
```
<source>:5:32: error: cannot compile this tail call skipping over cleanups yet
[[clang::musttail]] return call(x);
^~~~~~~
```
It would be nice if clang could handle this basic case where the callee is also `noexcept` and the exception cleanup section is not actually needed.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs