gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Control flow bug involving tagbody, return-from, unwind prot


From: Paul F. Dietz
Subject: [Gcl-devel] Control flow bug involving tagbody, return-from, unwind protect
Date: Fri, 31 Dec 2004 05:59:07 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217

The random tester found a bug involving a fairly complicated
tangle of control flow.  See mind.518:

(deftest misc.518
  (funcall
   (compile nil '(lambda ()
                   (declare (optimize (compilation-speed 0) (safety 1)
                                      (debug 1) (space 0) (speed 3)))
                   (flet ((%f10 (&optional (f10-1 0) (f10-2 0) &key)
                                (progn
                                  (tagbody
                                   (decf f10-2)
                                   (return-from %f10
                                     (complex (unwind-protect (go tag7))
                                              0))
                                   tag7)
                                  f10-2)))
                     (if (evenp (%f10 0 0)) 0 2140390)))))
  2140390)


        Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]