Overly agressive array type checks in dead code
Bug #1252108 reported by
Jan Moringen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
What I do:
(defun f (foo) (etypecase foo ((array t (* *)) (when (= (array-rank foo) 3) (array-dimension foo 2)))))
What happens:
; in: DEFUN F
; (ARRAY-DIMENSION FOO 2)
;
; caught WARNING:
; The array has dimensions (* *), 2 is too large.
;
; compilation unit finished
; caught 1 WARNING condition
What I expected to happen:
The code should compile without warnings or errors.
run-sbcl.sh --version
(running SBCL from: /home/jmoringe/
SBCL 1.1.8.60.
description: | updated |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in 792668aff416a04 7bb3df218d448d8 660303d1db. Now it's an unreachable code deletion notice.