| Issue |
166374
|
| Summary |
-Wreturn-stack-address false positive with unreachable code
|
| Labels |
false-positive
|
| Assignees |
|
| Reporter |
Soveu
|
https://cpp.godbolt.org/z/3357xPfP8
```cpp
#include <cstdlib>
template <typename R>
[[noreturn]] constexpr R __absurd() { std::abort(); }
int const& weird() {
return __absurd<int>();
}
```
Technically, `weird` should return `__absurd<int const&>()`, but I accidentally wrote it like this and I'm not really sure if this counts as a bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs