=name-kinds+ is used in read-time during compilation but really defined

Bug #1876713 reported by Yehouda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
Fix Released
Undecided
Unassigned

Bug Description

CFFI version: apparent 0.21.0 (in quicklisp of 27 Apr 2020)
Lisp version : LispWorks, all versions
Operation system: any

asdf system: cffi/c2ffi-generator

In src/c2ffi/generators.lisp, it defines a constant +name-kinds+ (by define-contant that expand to defconstant), and then use it in the next form inside #., i.e. at read-time. But when you compile the file the constant definition doesn't necessarily defines the constant for the reader, so the reader can error.

The definition of +name-kinds+ needs to be wrapped by (eval-when (compile load eval) to be compliant with the standard.

http://www.lispworks.com/documentation/HyperSpec/Body/m_defcon.htm#defconstant

Revision history for this message
Luís Oliveira (luismbo) wrote :
Changed in cffi:
status: New → Fix Committed
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.