FR 5771 then FR 3977 at Dublin
Glasgow → Dublin → Barcelona
Timetable, Dublin time
15:00FR 5771 from Glasgow at the gate
07:40FR 3977 to Barcelona leaves the gate
16 h 40 apart on the timetable, overnight
FR 3977 leaves 16 h 40 after FR 5771 arrives on the timetable: more than half a day, so not a connection we count.