odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.9k stars 606 forks source link

compiler crash #771

Closed benoitjacquier closed 3 years ago

benoitjacquier commented 4 years ago

Context

Compiler crash using this code

package main

import "core:fmt"
//import mu "microui"       

main :: proc() {
    fmt.println("Hello World\n");
    // COMPILER CRASH
    ctx := new(mu.Context);
    mu.init(ctx);
    ctx.text_width = proc(font: mu.Font, str: string) -> i32 {
        return 0;
    };
    // COMPILER CRASH
}

Failure Information (for bugs)

odin.exe crashes in is_divigering_stmt func: base_type(t) returns null. Can send minidump if needed.

Regards

wilsonk commented 3 years ago

I tested this on Win10 and Debian 10 (buster) just now with Odin version dev-4-28-1-:94fd59e6. It seems to work fine now on both systems. I didn't test macos. Perhaps this can be closed?