1. A statement delivered as a compliment, but which contains an implied insult.
2. Damning with faint praise.
Sometimes also described as a left-handed compliment, these are sometimes delivered with obvious sarcasm or complete deadpan.
B: Gee thanks. You've take something friendly and turned it into an Irish compliment. Jerk.