Copy the decls returned by DeclContext::lookup_result to a
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Nov 2012 05:07:23 +0000 (05:07 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Nov 2012 05:07:23 +0000 (05:07 +0000)
commit243d82345d3471c5375d57e8ac186327e4c82211
tree6b85398e9b7fb0beddeeb7ec0a17db03b6f090dd
parent193e035b9c02e2f81921ac89151f4b2e8fd2681a
Copy the decls returned by DeclContext::lookup_result to a
new container so we can safely iterate over them.

The container holding the lookup decls can under certain conditions
be changed while iterating (e.g. because of deserialization).

llvm-svn: 167816
clang/lib/Sema/SemaInit.cpp
clang/test/PCH/crash-12631281.cpp [new file with mode: 0644]