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
It appears that when a type alias to array type which uses an undefined constant for it's size is defined, the compiler crashes. I have only been able to reproduce this with the constants defined in uint modules.
This code
// This line prevents the crash// use std::usize;typeArray = [usize; usize::MAX];pubfnmain(){}
Yeah I think this is definitely a duplicate of #26797, but not so sure about #26922 because it's through an associated constant. Regardless though, closing as a duplicate, thanks for the investigation @dimbleby!
It appears that when a type alias to array type which uses an undefined constant for it's size is defined, the compiler crashes. I have only been able to reproduce this with the constants defined in uint modules.
This code
Causes this ICE
The text was updated successfully, but these errors were encountered: