0.8.0.78.vector-nil-string.6:
[sbcl.git] / src / pcl / compiler-support.lisp
index d4e113e..cbc6f9c 100644 (file)
   (let ((arg-pos (position-if #'listp stuff)))
     (if arg-pos
        `(defmethod ,name ,@(subseq stuff 0 arg-pos)
-          ,(nth-value 2 (sb-pcl::parse-specialized-lambda-list
-                         (elt stuff arg-pos))))
+          ,(handler-case
+               (nth-value 2 (sb-pcl::parse-specialized-lambda-list
+                             (elt stuff arg-pos)))
+             (error () "<illegal syntax>")))
        `(defmethod ,name "<illegal syntax>"))))
 
 (defvar sb-pcl::*internal-pcl-generalized-fun-name-symbols* nil)