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
$ zig build-exe test.zig
test.zig:4:20: error: struct 'test.World' has no member named 'doesntExist'
itemDrops: @This().doesntExist = undefined, // Error here
~~~~~~~^~~~~~~~~~~~
test.zig:3:19: note: struct declared here
pub const World = struct {
^~~~~~
I suspect that this may be similar to #17859. It appears to produce a similar stack trace. The circumstances appear to be different however. That's why I decided to report this separately.
It appears that the InternPool isn't great at dealing with compiler errors in specific circumstances.
The text was updated successfully, but these errors were encountered:
on zig-windows-x86_64-0.14.0-dev.154+768b17755 I get this error message so I think this has been fixed
src\main.zig:4:23: error: struct 'main.World' has no member named 'doesntExist'
itemDrops: @This().doesntExist = undefined, // Error here
~~~~~~~^~~~~~~~~~~~
src\main.zig:3:19: note: struct declared here
pub const World = struct {
^~~~~~
Zig Version
0.12.0-dev.1390+94cee4fb2
Steps to Reproduce and Observed Behavior
I've been getting crashes like this for a few months now, where having a compiler error in specific cases causes zig to crash.
Expected Behavior
It should report a compiler error:
I suspect that this may be similar to #17859. It appears to produce a similar stack trace. The circumstances appear to be different however. That's why I decided to report this separately.
It appears that the InternPool isn't great at dealing with compiler errors in specific circumstances.
The text was updated successfully, but these errors were encountered: