-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
using std.debug.print() on struct function twice causes unreachable code in analyze.cpp #11850
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
Labels
Milestone
Comments
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
Closes ziglang#12057 Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
Closes ziglang#12057 Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
Closes ziglang#12057 Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 15, 2022
Closes ziglang#12057 Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 16, 2022
Closes ziglang#12057 Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 16, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 17, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 17, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 18, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 18, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
wooster0
added a commit
to wooster0/zig
that referenced
this issue
Dec 21, 2022
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
TUSF
pushed a commit
to TUSF/zig
that referenced
this issue
May 9, 2024
Closes ziglang#11986 Closes ziglang#11850 Closes ziglang#12159
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.10.0-dev.2600+9360cfebc
Steps to Reproduce
I'm using the latest git commit as of right now, as I filled out in the version field, but it can also be reproduced on the Zig playground: https://zig-play.dev/
Minimal reproducible example:
This also causes the problem:
Printing once does not, and just outputs a normal compiler error as expected:
Expected Behavior
The expected behavior is to output a normal and descriptive compiler error which shows the problem line.
Actual Behavior
The compiler reaches code marked unreachable in
const_values_equal
and crashes.The text was updated successfully, but these errors were encountered: