FR 7156 then FR 5315 at Madrid
Dublin → Madrid → Rome
Timetable, Madrid time
20:40FR 7156 from Dublin at the gate
08:55FR 5315 to Rome leaves the gate
12 h 15 apart on the timetable, overnight
FR 5315 leaves 12 h 15 after FR 7156 arrives on the timetable: more than half a day, so not a connection we count.