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
Assume we run zig test on the below program from drive D on a Windows machine.
comptime {
_=@embedFile("D:/test.txt");
}
This will cause the following compiler panic:
Assertion failed at D:\a\1\s\src\stage1\util.hpp:229 in memCopy. This is a bug in the Zig compiler.thread 3332 panic:
Unable to dump stack trace: debug info stripped
However if we try and embed from a different drive as the current such as C or E, then zig test gives the expected output.
.\src\main.zig:2:20: error: unable to find 'E:\test.txt'
_ = @embedFile("E:/test.txt");
^
.\src\main.zig:2:9: note: referenced here
_ = @embedFile("E:/test.txt");
^
Backport a missing change from `path.zig`.
Fixes#9465
andrewrk
added
stage1
The process of building from source via WebAssembly and the C backend.
and removed
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
labels
Oct 27, 2021
Assume we run
zig test
on the below program from driveD
on a Windows machine.This will cause the following compiler panic:
However if we try and embed from a different drive as the current such as
C
orE
, thenzig test
gives the expected output.I did make a debug build of the zig compiler to get a stacktrace and here it is: https://pastebin.com/WsnzL85a.
The text was updated successfully, but these errors were encountered: