FR 7958 then FR 1421 at Barcelona
Cork → Barcelona → Budapest
Timetable, Barcelona time
16:15FR 7958 from Cork at the gate
05:55FR 1421 to Budapest leaves the gate
13 h 40 apart on the timetable, overnight
FR 1421 leaves 13 h 40 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.