Fix array->vector and vector->array for many types. Allow vector of bool.
Vectors do not have the same packing as arrays, and just bitcasting is not the correct way to convert them.
This commit is contained in:
committed by
Andrew Kelley
parent
914ad1ec2e
commit
0e3ca4c63e
@@ -6491,7 +6491,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
|
||||
\\ var v: V = undefined;
|
||||
\\}
|
||||
,
|
||||
"tmp.zig:2:26: error: vector element type must be integer, float, or pointer; '@Vector(4, u8)' is invalid",
|
||||
"tmp.zig:2:26: error: vector element type must be integer, float, bool, or pointer; '@Vector(4, u8)' is invalid",
|
||||
);
|
||||
|
||||
cases.add("compileLog of tagged enum doesn't crash the compiler",
|
||||
|
||||
Reference in New Issue
Block a user