It appears to be the let and let* forms that are being miscompiled.
Try byte-compiling this:
(defun some-function () "Docstring." (let ((some-var 0))
t))
For me, this produces the following in *Compile-Log-Show*:
Compiling file /tmp/paragraphs.el at Tue Feb 8 09:15:20 2005 While
compiling some-function: ** variable some-var bound but not referenced
While compiling some-function: !! Invalid byte code (("variable
reference to constant symbol" nil))
I'm using CVS-20050202, native win32. I don't see any of these problems.
Fabrice