llvm / llvm/llvm-project

[HLSL] Should `__decltype` drop address space qualifiers from an array prvalue?

Open
#198,703 2 comments 0 reactions 0 assignees View on GitHub
clang:frontend HLSL question
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Discovered in #198698. Related to [CWG1261](https://cplusplus.github.io/CWG/issues/1261.html).

A naive fix of #198580 that more consistently applies the resolution of [CWG1261](https://cplusplus.github.io/CWG/issues/1261.html) makes `__decltype` keep the address space qualifier for an array prvalue in HLSL. However, the test added in #133508 relied on that `__decltype` drops qualifiers from an array prvalue.

I don't know whether it's better or worse to generalize the resolution of [CWG1261](https://cplusplus.github.io/CWG/issues/1261.html) to address space qualifiers.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked discussions for #198698, #198580, and #133508, then review the CWG1261 resolution. Determine whether HLSL __decltype should retain address-space qualifiers on array prvalues; done requires an agreed semantic direction and corresponding implementation and test changes, but no relevant files or test paths are named here.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.