The below code hangs the compiler using odin-linux-amd64-nightly+2026-10-21.
I know I need to cast the function explicitly to the type I want but an error should printed.
I guess this should be reported on GitHub but I removed my account a while back.
package main
Base_Struct :: struct {
proc_ptr: proc(v: ^Base_Struct),
}
Generic_Struct :: struct($T: typeid) {
using base_struct: Base_Struct,
}
generic_proc :: proc(v: ^Generic_Struct($T)) {
}
main :: proc() {
// The compiler can't deduce what the type of T should be and hangs.
b := Base_Struct {
proc_ptr = generic_proc,
}
}