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
@dank-openai struct parametrics are different from function parametrics, as is fine for constexpr in a general sense it's just a problem in the context of struct parametrics.
cdleary
added
bug
Something isn't working or is incorrect
dslx
DSLX (domain specific language) implementation / front-end
labels
Jan 17, 2025
@dank-openai struct parametrics are different from function parametrics, as is fine for constexpr in a general sense it's just a problem in the context of struct parametrics.
Describe the bug
Try to build this:
observe error:
To Reproduce
Use code above, try to compile.
Expected behavior
I expect that I can cast a
u32
to au1
to define a type. That is, I expect that casting is constexpr-compatible.More comments
I tried another way of accomplishing the same thing:
and when I try to build and test:
let's try again, but same error (i.e., Cannot convert expression to parametric):
The text was updated successfully, but these errors were encountered: