Misleading error for (aref #() "0")

Bug #1999337 reported by Hadrien Lacour
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

Hello, the error produced by this form is:
Invalid index 0 for (SIMPLE-VECTOR 0), should be a non-negative integer below 0.
   [Condition of type SB-INT:INVALID-ARRAY-INDEX-ERROR]

Using ~S instead of ~W to print the offending index in
https://github.com/sbcl/sbcl/blob/2acc965db2fe5b6b5920cd32aeef763859ed4326/src/code/target-error.lisp#L1459
might help a bit to see a string was given.

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
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.