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
When we have this code, it ignores error.AnalysisFail. This is fine for most things, but when you have a function that returns a
struct, it kinda breaks down. It keeps trying to do analyze to the struct, since, it effectively ignored the error. Then it does
weird stuff to invalid zir, which is a no-no.
This is blocking my unused vars pr. I can't really think of a fix for this.
The text was updated successfully, but these errors were encountered:
This crashes astgen:
Segfaults on tarball zig, or prints stack trace on debug zig
The fact that you have shadowing is not the point. I think a lot of other errors could have worked, shadowing is just the first one I thought of.
Ok, so why does this trigger a bug, heres what I think
When we have this code, it ignores error.AnalysisFail. This is fine for most things, but when you have a function that returns a
struct, it kinda breaks down. It keeps trying to do analyze to the struct, since, it effectively ignored the error. Then it does
weird stuff to invalid zir, which is a no-no.
This is blocking my unused vars pr. I can't really think of a fix for this.
The text was updated successfully, but these errors were encountered: