From 6974384d09a8042e55d290d0128f08483570d181 Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Mon, 25 Nov 2002 22:07:14 +0000
Subject: [PATCH] Entomotomy bug:  macrolet-insufficient-syntax-checking

Port the bug fix from SBCL.
---
 compiler/ir1tran.lisp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/compiler/ir1tran.lisp b/compiler/ir1tran.lisp
index c0480d792..c89546305 100644
--- a/compiler/ir1tran.lisp
+++ b/compiler/ir1tran.lisp
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.131 2002/11/21 20:02:26 toy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.132 2002/11/25 22:07:14 toy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -2270,6 +2270,9 @@
 				    :environment environment)
 	    (unless (symbolp name)
 	      (compiler-error "Macro name ~S is not a symbol." name))
+	    (unless (listp arglist)
+	      (compiler-error "Local macro ~S has argument list that is not a list: ~S."
+			      name arglist))
 	    (when (< (length def) 3)
 	      (compiler-error
 	       "Local macro ~S is too short to be a legal definition." name))
-- 
GitLab