-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
compile-time use of undefined value detection #597
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Type
Projects
Status
To do
Zig should be able to detect that we will with 100% certainty branch on an undefined value.
Related:
Should be an error, because it's 100% certain at compile-time that we will reach unreachable code.
Not to be confused with #211 which is adding extra code and data in safety-enabled builds to detect use of undefined value at runtime.