No gain or loss shall be recognized to a partnership or to any of its partners in the case of a contribution of property to the partnership in exchange for an interest in the partnership.
Subsection (a) shall not apply to gain realized on a transfer of property to a partnership which would be treated as an investment company (within the meaning of section 351) if the partnership were incorporated.
The Secretary may provide by regulations that subsection (a) shall not apply to gain realized on the transfer of property to a partnership if such gain, when recognized, will be includible in the gross income of a person other than a United States person.
For regulatory authority to treat intangibles transferred to a partnership as sold, see section 367(d)(3).