Bayern Munich came from two goals down to beat Freiburg 3–2, ahead of their Champions League quarter-final first leg against Real Madrid.