In the case of stock of a passive foreign investment company which is acquired by bequest, devise, or inheritance (or by the decedent’s estate) and with respect to which an election under this section was in effect as of the date of the decedent’s death, notwithstanding section
1014, the basis of such stock in the hands of the person so acquiring it shall be the adjusted basis of such stock in the hands of the decedent immediately before his death (or, if lesser, the basis which would have been determined under section
1014 without regard to this subsection).