```cpp int* p = nullptr; doFn([&p]{ int n{}; p = &n; }); return *p; ``` gets no warnings, but it should.