Previously taxed earnings and profits
(2) Previously taxed earnings and profits(i) Exchanging shareholder that is a United States person. If an exchanging shareholder that is a United States person exchanges stock pursuant to a transaction described in 1.367(b)-3 or 1.367(b)-4(b)(1)(i), (b)(2)(i), (b)(3), (e), or (g), then immediately prior to the exchange, and solely for the purpose of computing exchange gain or loss under section 986(c), the exchanging shareholder shall be treated as receiving a distribution of previously taxed earnings and profits from the appropriate foreign corporation that is attributable (under the principles of section 1248) to the exchanged stock. If an exchanging shareholder that is a United States person is a distributee in an exchange described in 1.367(b)-5(c) or (d), then immediately prior to the exchange, and solely for the purpose of computing exchange gain or loss under section 986(c), the exchanging shareholder shall be treated as receiving a distribution of previously taxed earnings and profits from the appropriate foreign corporation to the extent such shareholder has a diminished interest in such previously taxed earnings and profits after the exchange. The exchange gain or loss recognized under this paragraph (j)(2)(i) will increase or decrease the exchanging shareholder's adjusted basis in the stock of the foreign corporation, including for purposes of computing gain or loss realized with respect to the stock on the transaction. The exchanging shareholder's dollar basis with respect to each account of previously taxed income shall be increased or decreased by the exchange gain or loss recognized. (ii) Exchanging shareholder that is a foreign corporation. If an exchanging shareholder that is a foreign corporation exchanges stock pursuant to a transaction described in 1.367(b)-3 or 1.367(b)-4(b)(1)(i), (b)(2)(i), (b)(3), (e), or (g), then, immediately prior to the exchange, the exchanging shareholder shall be treated as receiving a distribution of previously taxed earnings and profits from the appropriate foreign corporation that is attributable (under the principles of section 1248) to the exchanged stock. If an exchanging shareholder that is a foreign corporation is a distributee in an exchange described in 1.367(b)-5(c) or (d), then the exchanging shareholder shall be treated as receiving (immediately prior to the exchange) a distribution of previously taxed earnings and profits from the appropriate foreign corporation. Such distribution shall be measured by the extent to which the exchanging shareholder's direct or indirect United States shareholders (as defined in section 951(b)) have a diminished interest in such previously taxed earnings and profits after the exchange. (3) Other rules. See sections 985 through 989 for other currency rules that may apply in connection with a section 367(b) exchange.