| commit | 12be639dfcc17a10957f79b0e650ec7455cf50f6 | [log] [tgz] |
|---|---|---|
| author | David Blaikie <dblaikie@gmail.com> | Thu Oct 18 16:57:32 2012 +0000 |
| committer | David Blaikie <dblaikie@gmail.com> | Thu Oct 18 16:57:32 2012 +0000 |
| tree | caddbf225fd10a266a95b52eef4c1c2b877e0f7a | |
| parent | a0ca6601bc814e4b248eb473e7cfcd91844ccee2 [diff] |
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