notinline suppresses argument checking

Bug #1106691 reported by Stas Boukarev
6
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.

Tags: compiler
Revision history for this message
Christophe Rhodes (csr21-cantab) wrote : Re: [Bug 1106691] [NEW] notinline suppresses argument checking

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

Revision history for this message
Stas Boukarev (stassats) wrote :

That just means that we should signal a style-warning in this case, not a full warning. When test2 is in one file, test is another (but no notinline), it signals a style-warning, when they are in the same file, it's a full warning.

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.