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