FR 775 then LA 5788 at Barcelona
Torino → Barcelona → Santiago de Compostela
Timetable, Barcelona time
14:15FR 775 from Torino at the gate
13:35LA 5788 to Santiago de Compostela leaves the gate
23 h 20 apart on the timetable, overnight
LA 5788 leaves 23 h 20 after FR 775 arrives on the timetable: more than half a day, so not a connection we count.