mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Fix ICF crash
This commit is contained in:
parent
67361231df
commit
1c4265527e
|
|
@ -385,6 +385,7 @@
|
|||
(name (and entry
|
||||
(sb-kernel:%fun-name entry))))
|
||||
(and (symbolp name)
|
||||
(symbol-package name)
|
||||
(eq (nth-value 1 (find-symbol (symbol-name name)
|
||||
(symbol-package name)))
|
||||
:external))))
|
||||
|
|
|
|||
7
tests/icf-smoketest.impure-cload.lisp
Normal file
7
tests/icf-smoketest.impure-cload.lisp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(eval '(defun hhh () 92))
|
||||
(defvar f #'hhh)
|
||||
(unintern 'hhh)
|
||||
(eval '(defun hhh () 92))
|
||||
;;; Ensure no crash on (FIND-PACKAGE (SYMBOL-PACKAGE NIL)) if two functions
|
||||
;;; are identical and one is named by an uninterned symbol.
|
||||
(fold-identical-code :aggressive t)
|
||||
Loading…
Reference in a new issue