Type mismatch causes a compiler error

Bug #1430912 reported by Stas Boukarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Medium
Unassigned

Bug Description

(defun foo (a b)
  (loop for x across (cons a b)
        sum x))
=>
The value NIL is not of type (AND ATOM (NOT NULL)).

Tags: compiler-ir1
Revision history for this message
Stas Boukarev (stassats) wrote :

Reduced:

(defun foo ()
  (macrolet ((x (&rest args)
               (declare (ignore args))
               a))
    (let (a)
      (declare (type vector a))
      (x #.#'list))))

Revision history for this message
Stas Boukarev (stassats) wrote :

In fbea35e879891723259dfa55589b498228390bb9

Changed in sbcl:
status: Triaged → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.