§ 1017.
(a)
General rule
If—
(1)
an amount is excluded from gross income under subsection (a) of section 108 (relating to discharge of indebtedness), and
(2)
under subsection (b)(2)(E), (b)(5), or (c)(1) of section 108, any portion of such amount is to be applied to reduce basis,
then such portion shall be applied in reduction of the basis of any property held by the taxpayer at the beginning of the taxable year following the taxable year in which the discharge occurs.
([Aug. 16, 1954, ch. 736], [68A Stat. 301]; [Pub. L. 94–455, title XIX], §§ 1906(b)(13)(A), 1951(c)(1), Oct. 4, 1976, [90 Stat. 1834], 1840; [Pub. L. 96–589, § 2(b)], Dec. 24, 1980, [94 Stat. 3394]; [Pub. L. 99–514, title IV, § 405(b)], title VIII, § 822(b)(4), (5), Oct. 22, 1986, [100 Stat. 2224], 2373; [Pub. L. 100–647, title I, § 1004(a)(5)], Nov. 10, 1988, [102 Stat. 3386]; [Pub. L. 101–508, title XI, § 11704(a)(12)], Nov. 5, 1990, [104 Stat. 1388–518]; [Pub. L. 103–66, title XIII, § 13150(c)(6)]–(8), Aug. 10, 1993, [107 Stat. 448]; [Pub. L. 104–188, title I, § 1703(n)(5)], Aug. 20, 1996, [110 Stat. 1877]; [Pub. L. 105–206, title VI, § 6023(11)], July 22, 1998, [112 Stat. 825]; [Pub. L. 106–170, title V, § 532(c)(2)(S)], Dec. 17, 1999, [113 Stat. 1931].)