It is unlawful to:

There are a number of locations where it is unlawful for drivers to pass. Passing is prohibited within 100 feet of a railroad crossing, within 100 feet of an intersection, and within any other designated no passing zone.
DMV Writen Test