Dante has a solution for this: There is a place in the upper section of hell with no punishment or torment, reserved for "just heathens" like Socrates. So technically he did not go to heaven since he is denied the closeness to God, but arguably this is an even nicer afterlife, since he can continue thinking and questioning things together with other great minds.