https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111242
--- Comment #3 from Tomasz KamiĆski <tkaminsk at gcc dot gnu.org> ---
There is also similar issues, where out of bound writes are not detected, when
capacity is reserved:
```
constexpr bool bar() {
std::vector<int> v;
v.reserve(2);
int* ptr = v.data();
ptr[0] = 1; // UB, `int` not in lifetime, should be non-constant
return true;
}
```
https://godbolt.org/z/9W5hdhraM
