[llvm-bugs] [Bug 34254] New: Clang misses an opportunity to evaluate a call to std::accumulate at compile time
llvm-bugs at lists.llvm.org
Mon Aug 21 03:31:06 PDT 2017
Bug ID: 34254
Summary: Clang misses an opportunity to evaluate a call to
std::accumulate at compile time
Assignee: unassignedclangbugs at nondot.org
Reporter: jbcoe at me.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The following code:
Is compiled with gcc-trunk -O3 to:
mov eax, 528
whereas Clang evaluates the call to accumulate at compile time.
example at: https://godbolt.org/g/dd831y
This is not impeding my work in any way and was discovered by accident.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs