P6A-11, P6A-12: malformed lowering is an internal compiler error; source type-check completeness
P6A-11: when a .aji module passed the frontend but its AIR does not parse (E0001-E0005) or has invalid SSA/CFG (E5001, E5002), the result is one E7900 source.internal_compiler_error at the source construct, with the AIR code in air_code; semantic codes (E0006 included) are unaffected. Unit test injects the checkpoint's `ret %` defect. P6A-12: source-decidable type errors are E7005 at the source: - `as` checks lossless widening with the verifier's own rule (shared function), and that both sides are integers - slice.copy element types; own.free / region.destroy operand types - element rules of channel.make<T> and mutex.make (no borrow, scope, task, shield or guard, at any depth) Probing every source position found no other E1001/E1002 leak. The old test encoding the previous rule (verifier_widen, E1002) is replaced by typecheck/lossy_widen (E7005); 9 typecheck tests. Spec 15 §10 states the frontend/verifier boundary.
This commit is contained in:
1 parent
154c39865f
commit
748eddf4e5
16 files changed
+249
-14
No files matched your search
@@ -91,6 +91,7 @@ Only problems that exist because of the frontend. Everything the verifier decide
|
||||
| E7005 | source.type_mismatch | Expression has the wrong type in a source position |
|
||||
| E7006 | source.invalid_construct | Construct not allowed here |
|
||||
| E7007 | source.ambiguous | Source meaning cannot be determined |
|
||||
| E7900 | source.internal_compiler_error | The frontend produced invalid AIR for this construct: a compiler bug, not a program error; fields `air_code`, `air_message` |
|
||||
|
||||
## T0xxx — Runtime traps
|
||||
|
||||
|
||||
Reference in new issue
Block a user