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
This seems to stem from the combination of using sizeof (which returns an unspeakable HLSL type, unsigned long) on a template argument, trying to provide the template argument to a vector.
The following similar examples will compile just fine:
If I have the exact same vector declaration outside of the template context, things are fine. https://godbolt.org/z/PY7csqT4v
If I use sizeof in the template, and do not depend on the template arg, then things are fine. https://godbolt.org/z/5zYf4bdoo
I did wonder if it was related to #4629. It is the same ICE (as in the same error output), however the steps in that issue seemed to be very different to mine, so I made a separate issue to it.
Description
I am getting an Internal Compiler Error (ICE) with the following code:
https://godbolt.org/z/Tde8anb6d
This seems to stem from the combination of using sizeof (which returns an unspeakable HLSL type, unsigned long) on a template argument, trying to provide the template argument to a vector.
The following similar examples will compile just fine:
Steps to Reproduce
Minimal steps can be found in https://godbolt.org/z/Tde8anb6d
Actual Behavior
Full error output: Internal Compiler error: cast() argument of incompatible type! Compiler returned: 29
Environment
The text was updated successfully, but these errors were encountered: