FR 7156 then FR 9674 at Madrid
Dublin → Madrid → Rome
Timetable, Madrid time
23:45FR 7156 from Dublin at the gate
20:50FR 9674 to Rome leaves the gate
21 h 05 apart on the timetable, overnight
FR 9674 leaves 21 h 05 after FR 7156 arrives on the timetable: more than half a day, so not a connection we count.