potentially misleading STYLE-WARNING for bogus IGNORE/IGNORABLE declarations

Bug #736383 reported by Nikodemus Siivola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Wishlist
Stas Boukarev

Bug Description

 CL-USER> (let ((x 0))
            (let ((y x))
              (declare (ignore x))
              y))
 ; in: LAMBDA NIL
 ; (IGNORE X)
 ;
 ; caught STYLE-WARNING:
 ; declaring unknown variable X to be ignored
 ;
 ; compilation unit finished
 ; caught 1 STYLE-WARNING condition

Something along the lines of

  "declaring variable X, which is bound in outer scope, ignored"

...or anyways something that makes make it clear that X isn't unknown per-se, just that it isn't bound by the form where the declaration appears.

Stas Boukarev (stassats)
Changed in sbcl:
assignee: nobody → Stas Boukarev (stassats)
Revision history for this message
Stas Boukarev (stassats) wrote :

In 0191acbbad60897820741aa437d5172d78c35c18.

Changed in sbcl:
status: Triaged → 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.