[llvm-bugs] [Bug 33227] New: Defect with llvm::reverse used in for loop with a comparison
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 30 12:08:50 PDT 2017
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: unassignedbugs at nondot.org
Reporter: colsebas at hotmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170530/2df3d1b0/attachment.html>
More information about the llvm-bugs
mailing list