The eighth-seeded Anderson next faces defending champion Roger Federer for a place in the semi-finals.
Eight-time champion Federer boasts a 4-0 career record against the 2017 US Open runner-up.
Wayne Ferreira was the last South African man to reach the Wimbledon quarter-finals in 1994.DM