Why take Linguistics if you can cast Comprehend Languages?

Given the nature of the spell Comprehend Languages in Pathfinder, is there any particular advantage to taking Linguistics for a character who can cast it? Especially given the chance of severe (or horribly entertaining, depending on your point of view) failure with Linguistics that doesn’t seem to exist for Comprehend Languages.