FR 4584 then LL 5112 at Barcelona
Porto → Barcelona → Lisbon
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
12:15LL 5112 to Lisbon leaves the gate
17 h 40 apart on the timetable, overnight
LL 5112 leaves 17 h 40 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.