| | | | --- | --- | | Bugzilla Link | [44003](https://llvm.org/bz44003) | | Resolution | FIXED | | Resolved on | Feb 19, 2020 06:30 | | Version | trunk | | OS | Windows NT | | CC | @dwblaikie,@DougGregor,@zygoloid | ## Extended Description The following code, with clang trunk and -std=c++17, produces a warning that I believe to be a false positive. ---- code ---- #include <optional> #include <string_view> std::string_view foo() { std::optional<std::string_view> sv("abc"); return *sv; // unwanted [-Wreturn-stack-address] warning } ---- code ---- See https://godbolt.org/z/vTs3Kk This is a regression since clang 9.0