Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1035 closed enhancement (fixed)

special variables and declare ignore

Reported by: rme Owned by:
Priority: normal Milestone:
Component: Compiler Version: trunk
Keywords: Cc:


The spec says that a warning should be issued if a variable declared to be ignored is declared SPECIAL, as in:

(defun foo (x y)
 (declare (ignore y))
   (declare (special y))

That code doesn't make much sense, but it clearly deservers a warning.

(defparameter y ...)

(defun foo (x y)
 (declare (ignore y))

is about the same thing, but the warning in both cases should probably complain that inconsistent declarations applied to Y and not just say that it "wasn't IGNOREd".

Change History (2)

comment:1 Changed 8 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

(In [15528]) Try to emit a clearer warning if a SPECIAL variable is declared IGNORE. Fixes ticket:1035 in the trunk.

comment:2 Changed 8 years ago by gb

(In [15530]) Try again; fix ticket:1035 in the trunk (without breaking everything else).

Note: See TracTickets for help on using tickets.