But as far as I know, it's not illegal, as this person implied, for a European company to forbid relationships between direct reports.
Disclosure allows for people to be reassigned so that they're no longer in a subordinate position.