SB-C:LVAR-VALUE used on non-constant LVAR #<SB-C::LVAR 1 {1008D8BAE3}>

Bug #2063205 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(lambda (b c)
  (block b1
    (case
        (let (*)
          (if (eql c 0)
              (return-from b1 523191)
              b))
      (t (case c ((197 97 399) b) (t 0))))))

==>

SB-C:LVAR-VALUE used on non-constant LVAR #<SB-C::LVAR 1 {100865E163}>
   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [RETRY] Retry SLIME REPL evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] abort thread (#<THREAD tid=1923 "repl-thread" RUNNING {1008304563}>)

Backtrace:
  0: (SB-C:LVAR-VALUE #<SB-C::LVAR 1 {100865E163}>)
  1: ((LAMBDA (SB-C::CLEANUP) :IN SB-C::EMIT-CLEANUPS) #<SB-C::CLEANUP :KIND :SPECIAL-BIND :MESS-UP #<SB-C::COMBINATION :FUN NIL :ARGS (NIL NIL) {100865E083}> {100865DEB3}>)
  2: (SB-C::MAP-NESTED-CLEANUPS #<FUNCTION (LAMBDA (SB-C::CLEANUP) :IN SB-C::EMIT-CLEANUPS) {10086B7E8B}> #<SB-C::CBLOCK 5 :START c2 {1008661BC3}> NIL)
  3: (SB-C::EMIT-CLEANUPS (#<SB-C::CBLOCK 5 :START c2 {1008661BC3}>) #<SB-C::CBLOCK 3 :START c3 {1008658D63}>)
  4: (SB-C::FIND-CLEANUP-POINTS #<SB-C:COMPONENT :NAME "<unknown>" {1008660683}>)
  5: (SB-C::ENVIRONMENT-ANALYZE #<SB-C:COMPONENT :NAME "<unknown>" {1008660683}>)
  6: (SB-C::COMPILE-COMPONENT #<SB-C:COMPONENT :NAME "<unknown>" {1008660683}>)
  7: (SB-C::%COMPILE (LAMBDA (B C) (BLOCK B1 (CASE # #))) NIL NIL)
[...]

x86-64, "2.4.3.191-2c354b9d6"

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