The following patch fixes the shadow error while compiling with --enable-debug=full. https://gist.github.com/LinuxMatt/84c863ce3890f4ac86f7
Thx, applied in 5a9e94ab