[cfe-commits] r137966 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/SemaCXX/function-redecl.cpp

Chandler Carruth chandlerc at google.com
Thu Aug 18 14:49:24 PDT 2011


On Thu, Aug 18, 2011 at 2:40 PM, Kaelyn Uhrain <rikka at google.com> wrote:

> I suspect the reason the qualifiers aren't being shown is that A::f is
> visible through B (doesn't need to be qualified), but it isn't valid for
> redeclaration. I *think* the fix is to not accept typo corrections where the
> only difference is in the qualifier, i.e. where the typo-corrected
> identifier is the same as the uncorrected identifier.


Why wouldn't the correct solution be to perform typo correction as-if A::f
were not visible through B since those are the rules for redeclarations?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110818/f7903256/attachment.html>


More information about the cfe-commits mailing list