FR 5315 then FR 7178 at Fiumicino
Madrid → Rome → Vienna
Timetable, Rome time
20:30FR 5315 from Madrid at the gate
19:50FR 7178 to Vienna leaves the gate
23 h 20 apart on the timetable, overnight
FR 7178 leaves 23 h 20 after FR 5315 arrives on the timetable: more than half a day, so not a connection we count.