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