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