X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fparse-lambda-list.lisp;h=6109cbd082d6f98a16df99d21cf82a57ae76f0d1;hb=2a71a27c55ad98e36f2886017d45ca2ae986296d;hp=8760b4e2ad4750c314dff1b572f1b9b72f1071bf;hpb=a2e72ddcfa3308ed7eb02c7b1bdfe3120d71b423;p=sbcl.git diff --git a/src/compiler/parse-lambda-list.lisp b/src/compiler/parse-lambda-list.lisp index 8760b4e..6109cbd 100644 --- a/src/compiler/parse-lambda-list.lisp +++ b/src/compiler/parse-lambda-list.lisp @@ -84,8 +84,9 @@ (unless (member state '(:required :optional :post-rest :post-more)) (compiler-error "misplaced &KEY in lambda list: ~S" list)) + #-sb-xc-host (when (optional) - (style-warn + (compiler-style-warn "&OPTIONAL and &KEY found in the same lambda list: ~S" list)) (setq keyp t state :key)) @@ -99,6 +100,8 @@ (&aux (when (member state '(:rest :more-context :more-count)) (compiler-error "misplaced &AUX in lambda list: ~S" list)) + (when auxp + (compiler-error "multiple &AUX in lambda list: ~S" list)) (setq auxp t state :aux)) (t (bug "unknown LAMBDA-LIST-KEYWORD in lambda list: ~S." arg)))