FR 2437 then FR 7157 at Madrid
Rome → Madrid → Dublin
Timetable, Madrid time
19:25FR 2437 from Rome at the gate
18:40FR 7157 to Dublin leaves the gate
23 h 15 apart on the timetable, overnight
FR 7157 leaves 23 h 15 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.