This website requires JavaScript.
About
Status
₊˚⊹Discord
Explore
Register
Sign in
Reference in a new issue
Blame
Copy permalink
Reference in a new issue
Copy permalink
DKB
/
zig
Star
0
Fork
You've already forked zig
0
mirror of
https://codeberg.org/ziglang/zig
synced
2026-11-18 07:05:05 +00:00
Code
Issues
Releases
Packages
Activity
a85495ca22
zig
/
test
/
cases
/
compile_errors
/
function_ptr_alignment.zig
15 lines
481 B
Raw
Normal View
History
AstGen: disallow alignment on function types A pointer type already has an alignment, so this information does not need to be duplicated on the function type. This already has precedence with addrspace which is already disallowed on function types for this reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and alignment.
2024-03-16 16:46:45 +01:00
Sema: validate function pointer alignment
2022-07-17 16:13:25 +03:00
AstGen: disallow alignment on function types A pointer type already has an alignment, so this information does not need to be duplicated on the function type. This already has precedence with addrspace which is already disallowed on function types for this reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and alignment.
2024-03-16 16:46:45 +01:00
Sema: fix fn pointer align disagrees with fn align error Check the specified function alignment rather than the effective function alignment.
2022-07-21 15:16:59 -07:00
Sema: validate function pointer alignment
2022-07-17 16:13:25 +03:00
aarch64: implement some safety checks Closes #24553
2025-07-26 03:09:55 -04:00
Sema: validate function pointer alignment
2022-07-17 16:13:25 +03:00
tests: get cases passing (and a few other bits)
2026-03-01 19:18:04 +00:00
AstGen: disallow alignment on function types A pointer type already has an alignment, so this information does not need to be duplicated on the function type. This already has precedence with addrspace which is already disallowed on function types for this reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and alignment.
2024-03-16 16:46:45 +01:00