Tim Taylor's last-kick conversion crowned an incredible Anglo-Welsh Cup fightback to secure Gloucester a 31-29 victory over Harlequins and a place in the semi-finals of the competition.
Gloucester, needing a bonus-point victory to edge out Welsh side Scarlets at the top of Pool Two, looked down and out when it trailed 20-0 after 25 minutes.
But it scored five tries in a spirited comeback, finally drawing level in the 79th minute when fullback Tom Voyce drove in from close range for its final touchdown.
It all hinged on the conversion and Taylor stroked it between the posts to take his tally for the match to 11 points and sink a Harlequins side who required an improbable 11-try win to edge ahead of Cardiff Blues in Pool Three.
James Simpson-Daniel (2), Taylor and Tim Molenaar bagged Gloucester's other tries with Nick Evans (2) and James Percival the players to score for Harlequins.
Wasps beat Newcastle 9-3 in an error-strewn clash at Kingston Park.
Newcastle was already out of contention for the quarter-finals after last weekend's defeat at Cardiff Blues, while Wasps' chances of qualifying had disappeared after Saturday's results and some big names were missing because of Six Nations and England Saxons duty.
Three penalty goals from Dave Walder secured victory for Wasps with Rob Miller's 14th-minute penalty providing the only chance for the home fans to celebrate.
On Saturday, Northampton's 23-11 win over Leicester at Franklin's Gardens ensured a home semi final for it.
Leicester's defeat went close to extinguishing its hopes of progressing in the tournament as it needed Saracens to lose at home to Newport-Gwent Dragons to stand any chance, and lose Saracens did, going down 22-23. That left Leicester to face Northampton in the March 14 semi-final.
Alan Dickens and Paul Diggin bagged Northampton's two tries with Billy Twelvetrees scoring all of Leicester's points with a try and two penalty goals.
Cardiff Blues sealed a bonus-point 38-23 victory over the Scarlets at Parc y Scarlet.
Casey Laulala (2), Tom Shanklin, Taufa'ao Filise and Paul Tito bagged the Blues' tries, three coming in the space of 12 minutes after half-time, when they had trailed 17-7.
Rees Priestland, David Lyons and Lee Williams scored tries for the hosts.
Scarlets went into the match just needing a bonus point to reach the last four but, like the Blues, their involvement in the competition is now over.
London Irish gave up its slender chance of a semi-final place with barely a whimper as it lost 19-9 to Worcester at Sixways.
Chris Pennell scored the only try of the game for Worcester, which was already out of the competition before kick-off, as it warmed up for a big Premiership clash at high-flying Saracens next weekend.
First five-eighths Butch James made an impressive first appearance in 10 months as Bath ended its campaign with a 40-7 victory over Sale.
James, who needed a knee reconstruction after being injured at Newcastle last April, had to play just the first 40 minutes to show he was back in the groove and ready to spearhead a Bath revival in the last three months of the season.
Chief beneficiary was right wing Michael Stephenson, who bagged a hat-trick of tries, with Pieter Dixon, Jack Cuthbert and Matt Carraro also scoring for the hosts.
Bath's interest in the competition ended with their defeat at Leicester last weekend and Sale, who had Kristian Ormsby to thank for their