The example that taught me the pitfalls of this particular feature was this one in the "Strangest language feature?" question. (Which is why I was for reopening that question, by the way - it is a valuable learning resource.)
Good reference material can be found here: What are the rules for Javascript's automatic semicolon insertion?