CRA recently released a letter which discusses whether a gift by will of marketable securities provided to a Foundation would be deemed to have been made immediately before the death of the donor.  CRA concluded that the gift did constitute a gift by will made immediately before the death of the donor under subsection 118.1 (5) of the ITA.  The letter appears to have been written before the 2014 budget, which will have an impact on the bequests are dealt with in estates where the testator died on or after January 1, 2016.     

Here is a copy of the full CRA letter.