Closed DireLines closed 5 months ago
I can still reproduce this with https://github.com/odin-lang/Odin/commit/1009182f7b35e38e0fba375ad830fc609a7be831:
[rick@hb-ubuntu-20.04 3204]$ ../../Odin-latest/odin build .
Internal Compiler Error: Type_Info for 'Tick' could not be found
Illegal instruction (core dumped)
[rick@hb-ubuntu-20.04 3204]$ ../../Odin-latest/odin report
Where to find more information and get into contact when you encounter a bug:
Website: https://odin-lang.org
GitHub: https://github.com/odin-lang/Odin/issues
Useful information to add to a bug report:
Odin: dev-2024-03:1009182f7
OS: Ubuntu 22.04.4 LTS, Linux 6.5.0-1014-aws
CPU: Intel(R) Xeon(R) Platinum 8488C
RAM: 31548 MiB
Backend: LLVM 14.0.0
I have a forthcoming PR with an explanation but I suspect @gingerBill might come up with a better solution.
I am struggling to replicate this, but thank you for the detailed post in #3335
Context
Tried adding a Script component to my game, it caused a compile error to sometimes happen. I pared the code down to this single file where the bug happens a little less than half the time. The bug seems to trigger depending on the order in which Odin evaluates the code. If objects is listed first in the definition of Game, the issue seems to be fixed
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
odin report
output:Expected Behavior
odin build main.odin -file
successfully compilesCurrent Behavior
Internal Compiler Error: Type_Info for 'Tick' could not be found
fish: Job 1, 'odin build main.odin -file' terminated by signal SIGTRAP (Trace or breakpoint trap)
Steps to Reproduce
main.odin
odin build main.odin -file
orodin build .