Losses can be transferred to the receiving company in case of qualified re-organisation. A re-organisation is qualified if certain conditions are met and may include mergers, demerges, divisions, partial divisions, transfer of assets, transfer of a registered office and exchange of shares.
In case of a qualified re-organisation no taxes should arise either corporation tax, capital gains tax, stamp duties, etc.