Describe the bug, including details regarding any error messages, version, and platform.
We have encountered crash after upgrading to use LLVM 18. After digging into it further, the root cause is that Status::message function below has defined a static const string in the header file which may cause troubles in different translation units.
const std::string& message() const {
static const std::string no_message = "";
return ok() ? no_message : state_->msg;
}
Component(s)
C++
Describe the bug, including details regarding any error messages, version, and platform.
We have encountered crash after upgrading to use LLVM 18. After digging into it further, the root cause is that
Status::messagefunction below has defined a static const string in the header file which may cause troubles in different translation units.Component(s)
C++