Paragraphs (2) and (3) shall not apply in the case of an exchange described in subsection (a) or (b) of section
361. Subject to such basis adjustments and such other conditions as shall be provided in regulations, the preceding sentence shall not apply if the transferor corporation is controlled (within the meaning of section
368
(c)) by 5 or fewer domestic corporations. For purposes of the preceding sentence, all members of the same affiliated group (within the meaning of section
1504) shall be treated as 1 corporation.