fmakunbound fails for macros in SBCL 1.0.49
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
High
|
Unassigned |
Bug Description
Quoting the CL Hyperspec on fmakunbound:
Removes the function or macro definition, if any, of name in the global environment.
This worked in SBCL 1.0.45 but fails in 1.0.49. Here are logs for
64-bit linux.
; 1.0.45 (worked)
* (defmacro foo (x) x)
FOO
* (fmakunbound 'foo)
FOO
* (macro-function 'foo)
NIL
*
; 1.0.49 (failed)
* (defmacro foo (x) x)
FOO
* (fmakunbound 'foo)
FOO
* (macro-function 'foo)
#<FUNCTION (MACRO-FUNCTION FOO) {AABD50D}>
*
Other info requested for a bug report:
sloth:~> ~/bin/sbcl --version
SBCL 1.0.49
sloth:~> uname -a
Linux sloth 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 x86_64 GNU/Linux
sloth:~> ~/bin/sbcl
This is SBCL 1.0.49, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* *features*
(:ANSI-CL :COMMON-LISP :SBCL :SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS
:SB-UNICODE :SB-EVAL :SB-SOURCE-
:LINUX :SB-THREAD :LARGEFILE :GENCGC :STACK-
:C-STACK-
:RAW-INSTANCE-
:STACK-
:CYCLE-COUNTER :INLINE-CONSTANTS :MEMORY-
:OS-PROVIDES-
:OS-PROVIDES-
:OS-PROVIDES-POLL)
*
Changed in sbcl: | |
assignee: | nobody → Nikodemus Siivola (nikodemus) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
commit 39c9c1d494f6d8a 42c6f701ef1db4f 688fe1b310
Author: Nikodemus Siivola <email address hidden>
Date: Fri Jun 10 23:30:52 2011 +0300
FMAKUNBOUND removes the MACRO-FUNCTION as well
Fixes lp#795705.