-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
False dependency loop with function pointer #14353
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
Comments
michal-z's reduction in 12325 is the same as yours |
Yeah, perhaps it is. There are some weird properties of mine I wasn't sure about and the shape didn't feel identical. For example, if you get rid of the initializer |
if you remove the |
That also works fine (doesn't produce compiler error). |
@mitchellh It seems the bug has been fixed, since with |
It triggers an assertion failure with a debug build. |
Zig Version
0.11.0-dev.1329+37424fd11
Steps to Reproduce and Observed Behavior
zig test test.zig
:Some notes:
Expected Behavior
No error.
The text was updated successfully, but these errors were encountered: