Aiming your camera directly at the sun for extended periods of time can overheat the sensor. I've seen other types of cameras get dead pixels from similar attempts. Short bursts won't hurt, but don't leave it like that. Assuming that's what you're talking about. Sunset is much softer and doesn't follow the same rule.
I shoot directly at the sun (with an HVX and previously a DVX) quite often with no problems. My cheap digicam has spent dozen of hours staring at the sun shooting time-lapses with no problems. Last year the digicam spent several days of all-day shooting sky timelapses on a tripod in the middle of a desert in 50 degree C heat with no problems.