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

Compiler hangs forever with function pointer argument + return type combo #3456

Open
Dudejoe870 opened this issue Apr 20, 2024 · 0 comments
Open
Labels
bug replicated We were able to replicate the bug. triaged Bug has been looked at.

Comments

@Dudejoe870
Copy link
Contributor

Context

  • Operating System & Odin Version:
  • Odin: dev-2024-04-nightly:3620e62ff
  • OS: Windows 10 Home Basic (version: 22H2), build 19045.4291
  • CPU: AMD Ryzen 7 3700X 8-Core Processor
  • RAM: 32678 MiB
  • Backend: LLVM 17.0.1

Expected Behavior

An error like this:

test.odin(4:27) Error: 'a' of type '^TestStruct' has no field 'anything'
        func: proc(a: ^TestStruct) -> a.anything,

Current Behavior

The compiler hangs infinitely with no output just a blank terminal.

Failure Information (for bugs)

Steps to Reproduce

Put this into a test.odin file

package main

TestStruct :: struct {
	func: proc(a: ^TestStruct) -> a.anything,
}

main :: proc() {
}

compile using

odin build test.odin -file --show-timings

the compiler will now hang forever.

Failure Logs

N/A

@Kelimion Kelimion added bug triaged Bug has been looked at. replicated We were able to replicate the bug. labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug replicated We were able to replicate the bug. triaged Bug has been looked at.
Projects
None yet
Development

No branches or pull requests

2 participants