Errors during rewrite of :initial-contents are not caught in transform for MAKE-ARRAY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
(compile nil '(lambda (x) (make-array '(10) :initial-contents (loop for i of-type 0 below x collect i))))
==>
bad thing to be a type specifier: 0
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT] Exit debugger, returning to top level.
Backtrace:
0: (SB-KERNEL:
1: (SB-KERNEL:
2: (SB-KERNEL:
3: (SUBTYPEP 0 NUMBER #<unused argument>)
4: (SB-LOOP:
5: (SB-LOOP:
6: (SB-LOOP:
7: (SB-LOOP:
8: (SB-LOOP:
9: ((FLET SB-IMPL:
10: (MACROEXPAND (LOOP FOR I OF-TYPE 0 BELOW ...) #S(SB-KERNEL:LEXENV :FUNS NIL :VARS ((X . #)) :BLOCKS NIL :TAGS NIL :TYPE-RESTRICTIONS NIL :LAMBDA #<SB-C::CLAMBDA :%SOURCE-NAME SB-C::.ANONYMOUS. :%DEBUG..
11: (SB-C::
12: ((:SOURCE-TRANSFORM MAKE-ARRAY) (MAKE-ARRAY (QUOTE (10)) :INITIAL-CONTENTS (LOOP FOR I OF-TYPE 0 BELOW ...)) #S(SB-KERNEL:LEXENV :FUNS NIL :VARS ((X . #)) :BLOCKS NIL :TAGS NIL :TYPE-RESTRICTIONS NIL ..
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
1e2a6f25195eb7a 552ce0da370592a 20d8fc8554