While drafting an answer on another site, at one point I came up with the following sentence:
*You can’t force someone to follow a contract who hasn’t agreed to it.
I think the intended meaning is clear. But if you apply the grammar rules strictly, without regard for semantics, it would seem that the ‘who’ applies to the contract, which is a strange thing to say.
Is this construction grammatical and does it have a distinct name?