-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Description
const S = struct {
a: *[@sizeOf(S)]u8,
};
test {
var s: S = undefined;
_ = s;
}
a.zig:19:10: error: struct 'a.S' depends on itself
a: *[@sizeOf(S)]u8,
^~~~~~~~~~
Should be fixed by implementing lazy pointer types, lazy array types, or both.
marler8997, Jengamon, phase, misanthrop, alichraghi and 17 more
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.