[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:48:08 PDT 2011


On Thu, Aug 18, 2011 at 2:30 PM, Jordy Rose <jediknil at belkadan.com> wrote:

> Haven't tested it, but it seems like this would also be bad for
> const/non-const mismatches:
>
> struct A { int typo() const; };
> int A::typo_() { return 3; }
>

This is a different issue. We're not correctly recovering after suggesting
the fixit hint I think, otherwise we would flag the second error (or more
usefully, suppress the typo correction).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110818/fb850c82/attachment.html>


More information about the cfe-commits mailing list