(f) Inadvertent invalid elections or terminations
If -
(1) an election under subsection (a), section 1361(b)(3)(B)
(ii), or section 1361(c)(1)(A) (ii)by any corporation -
(A) was not effective for the taxable year for which made
(determined without regard to subsection (b)(2)) by reason of a
failure to meet the requirements of section 1361(b) or
obtain shareholder consents, or
(B) was terminated under paragraph (2) or (3) of subsection
(d), section 1361(b)(3)(C),or section 1361(c)(1)(D)(iii),
(2) the Secretary determines that the circumstances resulting
in such ineffectiveness or termination were inadvertent,
(3) no later than a reasonable period of time after discovery
of the circumstances resulting in such ineffectiveness or
termination, steps were taken -
(A) so that the corporation for which the election
was made or the termination occurred is a small business
corporation or a qualified subchapter S subsidiary, as
the case may be, or
(B) to acquire the required shareholder consents, and
(4) the corporation for which the election was made or the
termination occurred, and each person who was a shareholder in
such corporation at any time during the period specified
pursuant to this subsection, agrees to make such adjustments
(consistent with the treatment of such corporation as an S
corporation or a qualified subchapter S subsidiary, as the case
may be) as may be required by the Secretary with respect to
such period,
then, notwithstanding the circumstances resulting in such
ineffectiveness or termination, such corporation shall be
treated as an S Corporation or a qualified subchapter S subsidary,
as the case may be during the period specified by the
Secretary.