potentially misleading STYLE-WARNING for bogus IGNORE/IGNORABLE declarations

Bug #736383 reported by Nikodemus Siivola on 2011-03-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stas Boukarev

Bug Description

 CL-USER> (let ((x 0))
            (let ((y x))
              (declare (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) on 2014-12-26
Changed in sbcl:
assignee: nobody → Stas Boukarev (stassats)
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  Edit
Everyone can see this information.

Other bug subscribers