[llvm-bugs] [Bug 36125] New: Clang-cl /std:c++14 does not inline constexpr constants
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 28 06:39:55 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36125
Bug ID: 36125
Summary: Clang-cl /std:c++14 does not inline constexpr
constants
Product: clang
Version: 5.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jvapen at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19759
--> https://bugs.llvm.org/attachment.cgi?id=19759&action=edit
Reproduction
MSVC 2015 seems to implement inline constexpr variables when compiling with
/std:c++14 (default)
When compiling the same source with clang-cl, this behavior is only available
when using /std:c++latest (or std:c++17)
See reproduction in attachment, where the MSVC2015 case produces an executable,
while Clang gives an error.
--
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/20180128/f8e05c9f/attachment-0001.html>
More information about the llvm-bugs
mailing list