Odin icon indicating copy to clipboard operation
Odin copied to clipboard

LLVM panic at compilation when parapoly type is incorrect

Open tymbaca opened this issue 1 year ago • 0 comments

Context

  • Please paste odin report output:
        Odin:    dev-2024-08-nightly:8359995
        OS:      macOS Sonoma 14.3.1 (build: 23D2057, kernel: 23.3.0)
        CPU:     Apple M3
        RAM:     16384 MiB
        Backend: LLVM 18.1.8

Expected Behavior

Compiler will print normal error message.

Current Behavior

I get LLVM panic

Failure Information (for bugs)

Steps to Reproduce

Run this:

package main

Container :: struct($T: typeid) {
	item: T,
}

new_container :: proc() -> Container($T) {
	return Container(T){}
}

main :: proc() {
	c := new_container()
}

Failure Logs

src/llvm_backend_proc.cpp(72): Panic: new_container :: proc() -> Container($T) (was parapoly: 1 1)
make: *** [run] Trace/BPT trap: 5

tymbaca avatar Sep 23 '24 01:09 tymbaca