https://bugs.llvm.org/show_bug.cgi?id=33227
Bug ID: 33227
Summary: Defect with llvm::reverse used in for loop with a
comparison
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedb...@nondot.org
Reporter: colse...@hotmail.com
CC: llvm-bugs@lists.llvm.org
Created attachment 18539
--> https://bugs.llvm.org/attachment.cgi?id=18539&action=edit
Example
std::vector<unsigned> V(10);
for (unsigned I : Fwd ? V : llvm::reverse(V))
llvm::errs() << I << "\n";
In this example compilation succeeds without even a warning but failure occurs
when Fwd is true.
--
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