-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unreachable in analyze.cpp from comptime function call that takes optional error parameter #11236
Labels
Milestone
Comments
alinebee
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Mar 20, 2022
alinebee
referenced
this issue
in alinebee/AZiggierWorld
Mar 20, 2022
`MockRepository.Instance.init` was causing the compiler to panic on zig 0.9.1 and the latest master, owing to it taking an optional error as a parameter. Runtime calls to such functions do compile, but comptime calls (such as the ones that create the global mock repository instances in memory.zig) do not. I'm still working on a reduced test case for this compiler bug. To unblock myself until it's fixed, I've simplified MockRepository to take a boolean `read_should_fail` parameter instead, which is sufficient for the current unit tests.
Vexu
added
the
stage1
The process of building from source via WebAssembly and the C backend.
label
Mar 20, 2022
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Mar 28, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Mar 28, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Mar 28, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Mar 28, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
Rexicon226
pushed a commit
to Rexicon226/zig
that referenced
this issue
Mar 29, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
TUSF
pushed a commit
to TUSF/zig
that referenced
this issue
May 9, 2024
Closes ziglang#10357 Closes ziglang#11236 Closes ziglang#11615 Closes ziglang#12055
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.10.0-dev.1447+1bd595cee
Steps to Reproduce
Compile and test the following program with
zig test
:Expected Behavior
Running
zig test
on the program above compiles and executes the tests, or fails with a compilation error on the offending line.Actual Behavior
Running
zig test
on the program above panics with the following message:The text was updated successfully, but these errors were encountered: