High-energy gamma rays in heavy-ion collisions