FR 5337 then FR 572 at Madrid
Marseille → Madrid → Porto
Timetable, Madrid time
10:20FR 5337 from Marseille at the gate
22:40FR 572 to Porto leaves the gate
12 h 20 apart on the timetable
FR 572 leaves 12 h 20 after FR 5337 arrives on the timetable: more than half a day, so not a connection we count.