Special rules.
(a)#
(a) Gifts, bequests and the like. A gift or bequest of a specific sum of money or of specific property, which is required to be paid or distributed to a beneficiary by the specific terms of the will or trust instrument and is properly paid or credited to the beneficiary, shall not be deemed to be a distribution of income by the estate or trust to the beneficiary.
(b)#
(b) Amounts accumulated for charitable purposes. In the case of an estate or trust, any amount of income required by the terms of the governing instrument to be accumulated and added to the principal for ultimate distribution to, or to be held in trust for the use of, any religious, charitable, scientific, literary, or educational organization shall be deemed to have been paid, credited, or required to be distributed to a charitable trust.