Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------
I created the following simple org file, with a code block in it: ==== BEGIN ====
This is a test.
#+BEGIN_SRC latex :exports none \newcommand{\test}{Test} #+END_SRC ==== END ====
Then exported it to LaTeX and had an error (backtrace attached). The error always happened regardless of the value of :exports.
Emacs : GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-07-29 on braeburn.aquamacs.org - Aquamacs Distribution 2.3a Package: Org-mode version 7.7