https://llvm.org/bugs/show_bug.cgi?id=31472
Bug ID: 31472 Summary: newGVN miscompilation of std::vector Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: matthias.krue...@famsik.de CC: llvm-bugs@lists.llvm.org Classification: Unclassified llvm @ 5825ccc67d75632b370cfd03e3493ccbda885ed8 / git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290542 91177308-0d34-0410-b5e6-96231b3b80d8 I applied https://reviews.llvm.org/D28059 manually on top. I tried to compile the following sample #include <iostream> #include <vector> int main() { // Create a vector containing integers std::vector<int> v = {7, 5, 16, 8}; // Iterate and print values of vector for(int n : v) { std::cout << n << '\n'; } } reduced from http://en.cppreference.com/w/cpp/container/vector with "-std=c++0x -mllvm -enable-newgvn" and it would output "7 0 0 0" instead of "7 5 16 8" -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs