You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
#include <string_view>
#include <string>
std::string f();
// Type your code here, or load an example.
int square(int num) {
std::string_view a(f());
std::string_view b{f()};
std::string_view c;
c = f();
return num * num;
}
In
only
a
is diagosed, even though b and c have the same issue.(see https://godbolt.org/z/dz67ZD)
fyi @Xazax-hun
The text was updated successfully, but these errors were encountered: