FR 7958 then FR 3976 at Barcelona
Cork → Barcelona → Dublin
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
21:45FR 3976 to Dublin leaves the gate
22 h 50 apart on the timetable, overnight
FR 3976 leaves 22 h 50 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.