[llvm-bugs] [Bug 36422] New: clang fails to precompute array lambda-initialization into global constants in C++14
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Feb 17 13:14:34 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36422
Bug ID: 36422
Summary: clang fails to precompute array lambda-initialization
into global constants in C++14
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: lebedev.ri at gmail.com
CC: llvm-bugs at lists.llvm.org
https://godbolt.org/g/qCh8KC
Both code variants produce exactly the same arrays.
With C++14, one is left as code that will be run at startup,
the other was successfully 'constexpr'-computed.
With C++17, the first variant is successfully 'constexpr'-computed too.
Both variants are clean as of -fsanitize=address,undefined,integer.
--
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/20180217/5a243d8f/attachment.html>
More information about the llvm-bugs
mailing list