LA 5798 then W4 6022 at Barcelona
Lisbon → Barcelona → Rome
Timetable, Barcelona time
23:55LA 5798 from Lisbon at the gate
15:15W4 6022 to Rome leaves the gate
15 h 20 apart on the timetable, overnight
W4 6022 leaves 15 h 20 after LA 5798 arrives on the timetable: more than half a day, so not a connection we count.