You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Implement 'DependentScopeDeclRefExpr' bug when trying to assign a static const member field from template parameter struct #7006
It feels silly that this doesn't work, because as showcased in the godbolt above it's totally fine to define the same exact variables I want from within a method, but impossible to do so otherwise. So the current workaround is to redefine every such constant inside every function that wants to use it, which is ugly.
changed the title [-][Feature Request] Implement 'DependentScopeDeclRefExpr'[/-][+][SPIR-V] Implement 'DependentScopeDeclRefExpr' bug when trying to assign a static const member field from template parameter struct[/+]on Nov 13, 2024
Activity
devshgraphicsprogramming commentedon Nov 13, 2024
why does the bug not appear without
-spirv!? I would have thought that templates get dealt with waaay before codegen.[-][Feature Request] Implement 'DependentScopeDeclRefExpr'[/-][+][SPIR-V] Implement 'DependentScopeDeclRefExpr' bug when trying to assign a static const member field from template parameter struct[/+]Fletterio commentedon Nov 13, 2024
Changed title to reflect it being a SPIR-V target bug
Fletterio commentedon Mar 23, 2025
Ran into a similar issue (half of it is the same issue) https://godbolt.org/z/vPqTezf5b
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to fb13…