In the case of a taxpayer who transfers securities (as defined in section 1236(c)) pursuant to an agreement which meets the requirements of subsection (b), no gain or loss shall be recognized on the exchange of such securities by the taxpayer for an obligation under such agreement, or on the exchange of rights under such agreement by that taxpayer for securities identical to the securities transferred by that taxpayer.
26 U.S. Code § 1058. Transfers of securities under certain agreements
Section applicable with respect to amounts received after Dec. 31, 1976, as payments with respect to securities loans (as defined in section 512(a)(5) of this title), and transfers of securities, under agreements described in this section, occurring after such date, see section 2(e) of Pub. L. 95–345, set out as an Effective Date of 1978 Amendment note under section 509 of this title.