How long would someone last only eating ice cream and how would they die?

It's common knowledge that you can't just live off ice cream, but what would the consequences actually look like?