not consistent, but happened twice, while I was coding something. Thing is though, I can't reproduce it; I deleted what I'd just typed and typed it again, but the error didn't pop-up.
Looks like an indexing error. If it crashes PB then generally it is. Simply clean the project (Build -> Clean) and then recompile and it should be fine.
Random things like that happen all the time but they do nothing. XCode doesn't have any that I have noticed.