That compiler is kind of ancient. The bsxfun code does a lot of
optimisation tricks, and I wouldn't be entirely surprised if some old
bug in gcc is producing this.
Sadly, you can't easily update gcc because Apple won't help you, since
they are trying to forbid the dissemination of GPLv3, which is the
free license that newer gccs use. I believe you can install a newer
gcc through the more free channels, like homebrew and fink.
Please let me know if you have success installing a more recent gcc
and if the problem persists with it.