The 26-year-old Paris Saint-Germain striker opened the scoring after he tapped in Willian's powerful cross in the 51st minute.

He then turned provider in the dying minutes to set up a goal for Liverpool midfielder Roberto Firmino, who came on off the bench just minutes earlier.

Brazil, who last failed to make it to the quarter-finals in 1990, will play either Belgium or Japan in the last eight in Kazan on Friday.