MrSmith33 / vox

Vox language compiler. AOT / JIT / Linker. Zero dependencies
Boost Software License 1.0
338 stars 18 forks source link

Strange bug #40

Closed MANKEYYENAME closed 2 years ago

MANKEYYENAME commented 2 years ago

struct Color {
    u8 r;
    u8 g;
    u8 b;
    u8 a;
}

void draw(){
    for(u64 i = 0; i < COUNT; i++){
        u8 a = cast(u8) i;
        Color c = Color(255, 0, 0, a);
    }
}
Compile error:
be.emit_mc_amd64:733: ICE: Index is not register, but constantZero 0
- module `test`
- function `draw`
  - defined at test.vx:16:1

Windows