Fix Trac #2137: report correct location for shadowed binding