Roglič remains race leader five staged into Giro
Roglič crossed the finish line in 61st place but in the time of the winner, the German Pascal Ackerman, who won a sprint finish in pouring rain to claim his second victory in this year's race.
The 29-year-old Slovenian has been in the lead since the first stage of the race and is the first rider in 16 years to have worn the pink jersey for the first five days.
While the riders braved 140 kilometres in freezing rain today, Thursday's sixth stage covers 238km from Cassino to San Giovanni Rotondo.