In no event shall the basis of any property be increased under subsection (a) or (b) above the fair market value of such property (determined without regard to section
7701
(g)) by reason of any gain recognized to the transferor as a result of the assumption of a liability.