FR 7958 then FR 3035 at Barcelona
Cork → Barcelona → Krakow
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
11:05FR 3035 to Krakow leaves the gate
12 h 10 apart on the timetable, overnight
FR 3035 leaves 12 h 10 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.