-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[HLSL] Initializer lists for incomplete arrays failing #132958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
llvm-beanz
added a commit
to llvm-beanz/llvm-project
that referenced
this issue
Mar 28, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes llvm#132958 ../clang/test/SemaHLSL/Language/InitIncompleteArrays.hlsl
llvm-beanz
added a commit
that referenced
this issue
Apr 25, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes #132958
@llvm/issue-subscribers-clang-frontend Author: Chris B (llvm-beanz)
Initialization of incomplete arrays fail because the size of the entity to initialize is undefined which trips over how we iterate the initializers. I need to create an alternate flow to support repeatedly iterating the dest types list to handle unknown array sizes.
Problematic code: export void fn() {
int2 Arr[] = {int2(0,1), int2(2,3), int2(4,5)};
} |
IanWood1
pushed a commit
to IanWood1/llvm-project
that referenced
this issue
May 6, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes llvm#132958
IanWood1
pushed a commit
to IanWood1/llvm-project
that referenced
this issue
May 6, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes llvm#132958
IanWood1
pushed a commit
to IanWood1/llvm-project
that referenced
this issue
May 6, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes llvm#132958
Ankur-0429
pushed a commit
to Ankur-0429/llvm-project
that referenced
this issue
May 9, 2025
This refactors the initialization list transformation code to handle incomplete array types. Fixes llvm#132958
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
Initialization of incomplete arrays fail because the size of the entity to initialize is undefined which trips over how we iterate the initializers. I need to create an alternate flow to support repeatedly iterating the dest types list to handle unknown array sizes.
Problematic code:
Compiler Explorer
The text was updated successfully, but these errors were encountered: