I have a little background with concrete, my family was in the construction business, and concrete is subject to issues as well. Yes, concrete expands and contracts, it is why when they pour concrete it has expansion joints. If my memory serves me right, concrete doesn't like tension, it likes compression. When concrete expands it is putting it under tension. Rebar used in concrete is there to help handle tension (again if my memory serves me correctly; my dad is looking at me somewhere and shaking his head, saying "didn't I teach you anything?" *lol*) and high temp expansion/contraction could still cause even rebar reinforced concrete to crack.
Where concrete runs into problems I think is if the expansion gaps aren't big enough for the temperatures they have to handle. Concrete has a different coefficient of expansion than asphalt does, or steel, so it expands or contracts less due to temperature changes. Obviously its color helps, gray/light color like concrete will not absorb as much heat as asphault would. The problem is if you are in a place like Maine, the required expansion joint would be smaller than let's say Las Vegas. One of the things a place like Las Vegas has to deal with is extreme swings day and night; in a climate like Las Vegas it can go from 104 in day and drop 50,60 degrees at night, that has to be factored in, too. When you mix concrete the mix changes depending on what you are doing with it, the conditions, and I am pretty sure that the mix they use in a hot climate will be different than a moderate one. The problem with expansion joints is think about the concrete highways and the road noise they generate at speed, it is one of the reasons they switched to asphault (that, and it is easier to lay asphault than pour concrete IME), if you need large joints, going to be noisy.
Back to the original problem, there are ways to address heat with things like railroads. You could have larger rail gaps, but that has its own issues if you need to make them large. Dimly I think I read that using welded rail helped, because the rail expands or contracts over a large distance, that as long as the way the rail was connected to the ties allowed movement, the expansion was over a larger distance (and don't take this as gospel, some of the train guys on here might well know better). I thought that besides durability, concrete rail ties allowed for such ability, but again, hopefully the experts will chime in. Using different steel would also help, different alloys would have different coefficients of expansion, and could help make the problem of buckling less.