[PATCH] cpp11-migrate segfaults transforming map<string, int>::iterator
Edwin Vane
edwin.vane at intel.com
Tue Mar 26 10:23:43 PDT 2013
LGTM with these changes.
================
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(); }
};
----------------
'&' goes with 'key'.
================
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;
----------------
Maybe reference the PR that this test is for?
http://llvm-reviews.chandlerc.com/D579
More information about the cfe-commits
mailing list