diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-10-18 16:57:32 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-10-18 16:57:32 +0000 |
commit | 12be639dfcc17a10957f79b0e650ec7455cf50f6 (patch) | |
tree | caddbf225fd10a266a95b52eef4c1c2b877e0f7a /clang/test/Index/annotate-comments.cpp | |
parent | a0ca6601bc814e4b248eb473e7cfcd91844ccee2 (diff) | |
download | bcm5719-llvm-12be639dfcc17a10957f79b0e650ec7455cf50f6.tar.gz bcm5719-llvm-12be639dfcc17a10957f79b0e650ec7455cf50f6.zip |
PR14021: Copy lookup results to ensure safe iteration.
Within the body of the loop the underlying map may be modified via
Sema::AddOverloadCandidate
-> Sema::CompareReferenceRelationship
-> Sema::RequireCompleteType
to avoid the use of invalid iterators the sequence is copied first.
A reliable, though large, test case is available - it will be reduced and
committed shortly.
Patch by Robert Muth. Review by myself, Nico Weber, and Rafael Espindola.
llvm-svn: 166188
Diffstat (limited to 'clang/test/Index/annotate-comments.cpp')
0 files changed, 0 insertions, 0 deletions