Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning a default proc param to a poly proc causes compiler hang #4578

Open
blob1807 opened this issue Dec 14, 2024 · 0 comments
Open

Assigning a default proc param to a poly proc causes compiler hang #4578

blob1807 opened this issue Dec 14, 2024 · 0 comments

Comments

@blob1807
Copy link
Contributor

Context

Odin:    dev-2024-12:8b1c9b0ff
OS:      Windows 11 Home Basic (version: 23H2), build 22631.4602
CPU:     AMD Ryzen 7 6800HS with Radeon Graphics
RAM:     15608 MiB
Backend: LLVM 18.1.8

Expected Behavior

IDK but hanging isn't expected.

Current Behavior

When assigning a default proc parameter to a para poly proc the compiler will hang indefinitely & use a large amount of CPU.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Copy Paste
  2. Run
  3. Profit???
package main

main :: proc() {
    func_1()
    func_2(int)
}

func_1 :: proc(some_proc := proc(x: $T){} ) { }
func_2 :: proc($T: typeid, some_proc := proc(x: T){} ) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant