You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, this is a very minor issue I ran into only because I'm working on my own compiler and I wanted to see how Odin handles certain dependencies between entities. But it's an issue nonetheless so I'm posting it here anyway.
It seems like the compiler doesn't notice certain dependencies between constants and constants associated with types such as size_of(T)
odin report output:
Odin: dev-2025-02:584fdc0d4
OS: Windows 10 Professional (version: 22H2), build 19045.5371
CPU: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
RAM: 32681 MiB
Backend: LLVM 18.1.8
Current Behavior
The following code sample doesn't notice a dependency between FOO and Foo. I think this should be an error.
Context
It seems like the compiler doesn't notice certain dependencies between constants and constants associated with types such as
size_of(T)
odin report output:
Current Behavior
The following code sample doesn't notice a dependency between
FOO
andFoo
. I think this should be an error.Output is:
This applies to
size_of
,align_of
,len
,cap
and probably bunch of other things.The text was updated successfully, but these errors were encountered: