@(disabled=!ODIN_DEBUG)
doesn't work if procedure called using @(deferred_*=foo_debug)
#5083
Labels
@(disabled=!ODIN_DEBUG)
doesn't work if procedure called using @(deferred_*=foo_debug)
#5083
Context
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:Odin: dev-2025-04:d463aba7d
OS: Ubuntu 24.04.2 LTS, Linux 6.8.0-58-generic
CPU: Intel(R) Core(TM) i7-4790S CPU @ 3.20GHz
RAM: 15901 MiB
Backend: LLVM 20.1.4
Expected Behavior
Expect
foo_debug
to be disabled on debug builds even if called via adeferred_*
attribute instead of directly.Current Behavior
Direct calls are disabled correctly, deferred call runs as normal
Steps to Reproduce
Compile with and without
-debug
.debug_check
prints twice for-debug
, once otherwise (because called directly). ExpectedFailure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: