]> granicus.if.org Git - clang/commit
Avoid infinite mutual recursion in DiagnoseInvalidRedeclaration.
authorKaelyn Uhrain <rikka@google.com>
Thu, 16 Feb 2012 22:40:59 +0000 (22:40 +0000)
committerKaelyn Uhrain <rikka@google.com>
Thu, 16 Feb 2012 22:40:59 +0000 (22:40 +0000)
commit3336353578a02eb7dc35926c2440577993196e36
treee02b41d04d084323bf1b8e569ab7fd46e3bdefb9
parentad901a6cf3c57d7dd3d7b400835440992e99cff8
Avoid infinite mutual recursion in DiagnoseInvalidRedeclaration.

Don't try to typo-correct a method redeclaration to declarations not in
the current record as it could lead to infinite recursion if CorrectTypo
finds more than one correction candidate in a parent record.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/typo-correction.cpp