FR 6395 then FR 333 at Barcelona
Dublin → Barcelona → Gdansk
Timetable, Barcelona time
14:45FR 6395 from Dublin at the gate
09:50FR 333 to Gdansk leaves the gate
19 h 05 apart on the timetable, overnight
FR 333 leaves 19 h 05 after FR 6395 arrives on the timetable: more than half a day, so not a connection we count.