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
constE=struct {
next: ?*align(1) E,
};
test"x" {
_=E{.next=null};
}
Somehow the align(1) is causing a dependency on self.
Expected Behavior
No error. I wasn't expecting structs with align(1) pointers to self to behave differently from structs with regular pointers to self.
Actual Behavior
t.zig:1:11: error: struct 't.E' depends on itself
const E = struct {
^~~~~~
referenced by:
E: t.zig:1:11
E: t.zig:2:22
remaining reference traces hidden; use '-freference-trace' to see all reference traces
The text was updated successfully, but these errors were encountered:
17dec
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Oct 26, 2022
Zig Version
0.10.0-dev.4563+55c5da1b2
Steps to Reproduce
Somehow the
align(1)
is causing a dependency on self.Expected Behavior
No error. I wasn't expecting structs with
align(1)
pointers to self to behave differently from structs with regular pointers to self.Actual Behavior
The text was updated successfully, but these errors were encountered: