notinline suppresses argument checking
Bug #1106691 reported by
Stas Boukarev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Low
|
Unassigned |
Bug Description
(declaim (notinline test2))
(defun test2 (c &key name)
(list c name))
(defun test ()
(test2))
Signals no compilation style-warnins about test2 being misused.
To post a comment you must log in.
Stas Boukarev <email address hidden> writes:
> Public bug reported:
>
> (declaim (notinline test2))
> (defun test2 (c &key name)
> (list c name))
>
> (defun test ()
> (test2))
>
> Signals no compilation style-warnins about test2 being misused.
I suspect that this was at least at one point intentional: clhs 3.2.2.3
says that we can assume that the function test2 being called by test is
the function that was previously defined, except when there has been an
explicit notinline declaration.
Christophe