Skip to content

[HLSL] Array by-value assignment #109043

@spall

Description

@spall

Currently arrays are not assignable.
The following code should compile successfully:

export void fn() { int Arr[2] = {1, 2}; int Arr2[2] = {0, 0}; Arr2 = Arr; }

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions