Open
Description
Hi,
We are getting hits of the -Wunique-object-duplication warning in this type of code:
struct Foo
{
Foo& get()
{
static Foo f{}; // -Wunique-object-duplication
return f;
}
};
Example: https://godbolt.org/z/nhEj7rnbh
I did not see this use case in the unit tests, so I wonder if warning here is intentional?
Thanks!