As long as we are talking about syntactic parsing, this is not a problem as long as the attachment is the same. In both cases 'bread' is the direct object of the main verb.
Of course, there are cases where a particular word can be used both as a direct object and a subject of a particular verb. E.g.:
The man ate the pig.
The pig ate the apple.
Of course, what such systems are learning are not rules, but probability distributions that combine information about the distributions of word orders, association strengths between heads and dependent with a particular dependency relation, configurations of dependent pairs, etc.