A little issue that I chanced upon a couple weeks back, and which was nicely diagnosed with a lot of high-powered help from the forum
Not sure what the official process is, but it seems like a fix may be in order, or at least it should be added to the known errors list.
See: When does -1 != -1 ? - #65 by Coding_Badly - Programming Questions - Arduino Forum