Postpublished at 21:41 British Summer Time 8 October 2015
The Republic of Ireland are still leading Germany 1-0. Only two goals for Germany in the final few seconds can save Scotland.
Scotland cannot qualify for Euro 2016
Robert Lewandowski scores leveller in final seconds
Matt Ritchie and Steven Fletcher score for Scotland
Republic of Ireland beat Germany 1-0
Keir Murray
The Republic of Ireland are still leading Germany 1-0. Only two goals for Germany in the final few seconds can save Scotland.
BBC Scotland reporter Chris McLaughlin
"After a poor first half that started with a Lewandowski goal and finished with a stunning Matt Ritchie equaliser, Scotland took control of proceedings at Hampden and started to believe that it could be their night. An equalling outstanding Steven Fletcher goal just after the hour mark and it was dreamland. But what a cruel and nightmarish ending. That's it for Scotland - dreams of France are dead and they died once again on the bed of glorious failure. Bring on the World Cup."
Scotland need Germany to score twice to beat Ireland or they are out.
It is almost certainly all over for Scotland. Robert Lewandowski has scored for Poland in the dying seconds.
Poland have a free-kick 30 yards out in the final minute of injury time...
junglejim @bhoyrb "Not another hard luck story scotland .... Come on Germany !!! #bbcscotfootball"
We're into the first minute of injury time. There are four minutes to play.
David Marshall keeps Scotland in front as he dives to his left to palm away Grzegorz Krychowiak's low drive. This is unbearable.
The game is held up for a minute as a fan runs on to the pitch and makes for Robert Lewandowski...for a selfie, I hear.
Dearie me! Kamil Grosicki heads Lukasz Piszczek's cross over the bar from six yards, with Robert Lewandowski lurking.
Poland are beginning to press Scotland back and Tomasz Jodlowiec has a shot blocked and Lukasz Piszczek pings one over the bar. Meanwhile, in Dublin Germany's Thomas Muller side-foots the ball wide of the Ireland goal from 12 yards! He falls to his knees in disbelief.
Alexander Robertson @alex_jrobertson "Ok. Steven Fletcher just proved me wrong. Fair play, and what a cracking goal. 2-1! Unbelievable! )"
BBC Scotland reporter Chris McLaughlin
"The news of Ireland's goal against Germany seems to have reached the stands here at Hampden. Looks of disbelief all round as fans rummage in their sporrans for the calculators."
Well, would you believe it? Shane Long has put Ireland in front against Germany. As things stand, Scotland could not catch the Irish because they would move on to 18 points. And Scotland would need Ireland to beat Poland in the final game, and make sure they beat Gibraltar, of course, to reach the play-offs.
James McArthur is on for Darren Fletcher. Scotland have 16 minutes to play.
As things stand, with Scotland winning and the Republic of Ireland drawing, if Scotland beat Gibraltar on Sunday they will be in the play-offs no matter what happens between Poland and Ireland in their match. But a goal in Glasgow or Dublin in the next 20 minutes would change matters.