hokein wrote:

Discovered a new false positive, similar to 
https://github.com/llvm/llvm-project/pull/114213,

```
struct Bar {};

struct Foo {
   std::unique_ptr<Bar> bar;
};

struct Test {
  Test(Foo foo) : bar(foo.bar.get()), // bogus diagnostic: initializing pointer 
member 'bar' with the stack address of parameter 'foo'
      storage(std::move(foo.bar)) {};

  Bar* bar;
  std::unique_ptr<Bar> storage;
};
```

https://github.com/llvm/llvm-project/pull/122088
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to