Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.8.19.28: fix loading of multiply forward-refrenced layouts
Bug orginally reported and fix provided by Cheuksan Wang, basis for test-case provided by Jason Dagit.
- Loading branch information
Showing
6 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(in-package "CL-USER") | ||
|
||
(defun a-struct-referencer-1 (struct) | ||
(a-struct-slot struct)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(in-package "CL-USER") | ||
|
||
(defun a-struct-referencer-2 (struct) | ||
(a-struct-slot struct)) | ||
|
||
(defstruct a-struct slot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file run a regression test for a bug in loading | ||
# forward-referenced layouts. | ||
|
||
FILES='"undefined-classoid-bug-1.lisp" "undefined-classoid-bug-2.lisp"' | ||
FASLS='"undefined-classoid-bug-1.fasl" "undefined-classoid-bug-2.fasl"' | ||
|
||
${SBCL:-sbcl} <<EOF | ||
(let ((files (list $FILES))) | ||
(mapc #'load files) | ||
(mapc #'compile-file files)) | ||
(quit :unix-status 52) | ||
EOF | ||
|
||
${SBCL:-sbcl} <<EOF | ||
(mapc #'load (list $FASLS)) | ||
(quit :unix-status 52) | ||
EOF | ||
|
||
if [ $? != 52 ]; then | ||
rm $FASLS | ||
echo undefined-classoid-bug test failed: $? | ||
exit 1 # Failure | ||
fi | ||
|
||
# success convention for script | ||
exit 104 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters