mapcar list truncates argument list!
Bug #1478768 reported by
Faré
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
High
|
Jan Moringen |
Bug Description
Using a fairly recent SBCL from git on Linux x64 at commit 31d4aef.
(apply 'mapcar 'list '((1 2 3) (4 5 6) (7 8 9)))
Expected result:
((1 4 7) (2 5 8) (3 6 9))
Instead I get:
((1 7 NIL) (2 8 NIL) (3 9 NIL))
Something bad happens to the argument list.
Changed in sbcl: | |
status: | Confirmed → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Seems to be fixed by (arg args (cdr args)) -> (arg args (cdr arg)) in line 1251 of list.lisp