FR 2240 then LA 5769 at Barcelona
Marrakesh → Barcelona → Porto
Timetable, Barcelona time
13:25FR 2240 from Marrakesh at the gate
12:15LA 5769 to Porto leaves the gate
22 h 50 apart on the timetable, overnight
LA 5769 leaves 22 h 50 after FR 2240 arrives on the timetable: more than half a day, so not a connection we count.