[PATCH] cpp11-migrate segfaults transforming map<string, int>::iterator

Ariel Bernal ariel.j.bernal at intel.com
Tue Mar 26 12:47:48 PDT 2013



================
Comment at: test/cpp11-migrate/UseAuto/iterator.cpp:152
@@ +151,3 @@
+  // Passing a string as an argument to introduce a temporary object
+  // that will create an expression with cleanups
+  std::unordered_map<int> MapFind;
----------------
Edwin Vane wrote:
> Maybe reference the PR that this test is for?
done also included the map declaration in the scope and renamed the iterator it with I

================
Comment at: test/cpp11-migrate/UseAuto/Inputs/test_std_container.h:112
@@ -110,1 +111,3 @@
+  template <typename K>
+  iterator find(const K& key) { return iterator(); }
 };
----------------
Edwin Vane wrote:
> '&' goes with 'key'.
done and also I Capitalized Key


http://llvm-reviews.chandlerc.com/D579



More information about the cfe-commits mailing list