http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52432
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-02-29 13:41:24 UTC --- It's a bit more tricky, because if we only do that we have a diagnostic quality regression for decltyp32.C: many error messages are recursively produces instead of one. The fact is, unqualified_name_lookup_error doesn't just emit errors, also includes a mechanism preventing such long chains of errors.