Charitable Contributions and Capital gains/losses

Hi all, came across a weird question - is there any event where a charitable contribution will result in a capital gain or loss? (when the FMV differs)