It is permissible to pass on a two-lane two-way roadway within 100 feet of an intersection or railroad crossing.

There are number of situations in which it is prohibited to pass on a two-lane two-way road. One of these is when you are within 100 feet of an intersection or railroad crossing.
DMV Writen Test