#367 assoc error when combining compiled and interpreted code

lisp error
closed-fixed
clisp (525)
5
2006-09-27
2006-09-27
No

when non-canonicalized OPTIMIZE declarations in
interpreted code are combined with compiled code, an
ASSOC error is signaled:

[1]> (let (bad)
(declare (optimize safety))
(dolist (tp '(arithmetic-error) bad)
(unless (typep (handler-case (make-condition tp)
(error () nil))
'condition)
(push tp bad))))

*** - ASSOC: SAFETY is not a list
The following restarts are available:
ABORT :R1 ABORT
Break 1 [2]>

here handler-case is compiled due to (declare
(compile)) in its macroexpansion.
the solution is not to use ASSOC in sys::declared-optimize

Discussion

  • Sam Steingold

    Sam Steingold - 2006-09-27

    Logged In: YES
    user_id=5735

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).

     
  • Sam Steingold

    Sam Steingold - 2006-09-27
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks