Special rule for gifts
In the case of a disposition of any interest in a passive activity by gift—
(A)#
the basis of such interest immediately before the transfer shall be increased by the amount of any passive activity losses allocable to such interest with respect to which a deduction has not been allowed by reason of subsection (a), and
(B)#
such losses shall not be allowable as a deduction for any taxable year.