FR 9112 then FR 4597 at Barcelona
Torino → Barcelona → Porto
Timetable, Barcelona time
20:45FR 9112 from Torino at the gate
20:40FR 4597 to Porto leaves the gate
23 h 55 apart on the timetable, overnight
FR 4597 leaves 23 h 55 after FR 9112 arrives on the timetable: more than half a day, so not a connection we count.