Fix two small bugs in typo correction. One assertion failure building member expressi...
authorNick Lewycky <nicholas@mxc.ca>
Sat, 13 Dec 2014 02:54:28 +0000 (02:54 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 13 Dec 2014 02:54:28 +0000 (02:54 +0000)
commit01ad4ae72b375ffd6ee1a44240c7a55498ccef8b
treeef6d4254ad8db0fe9f003edf343be1329440b2e6
parent035b964d728f8ea973c08603597051c50333cc99
Fix two small bugs in typo correction. One assertion failure building member expressions because the lookup finds a different name than the original, fixed by updating the LookupResult's name with the name of the found decl. Second is that we also diagnose delayed typo exprs in the index of an array subscript expression.

The testcase shows a third bug with a FIXME in it.

llvm-svn: 224183
clang/lib/Parse/ParseExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/typo-correction-pt2.cpp