Chile qualified behind Germany from Group B to reach the Confederations Cup semi-finals.
The drew 1-1 with Australia in their final group game on Sunday and will now face Portugal in the last four on Wednesday.
World champions Germany moved above Chile to top the group with a 3-1 win over Cameroon and will play Mexico on Thursday.
RB Leipzig forward Timo Werner scored twice, with Hoffenheim midfielder Kerem Demirbay also on target for the experimental German squad competing inthe tournament hosted by Russia.
Porto forward Vincent Aboubakar netted for Cameroon, who finished bottom of the group, with a draw from their match against Australia their only point.