[llvm-bugs] [Bug 39265] New: LLVM 7 is missing C++14 experimental features

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 12 08:16:20 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=39265

            Bug ID: 39265
           Summary: LLVM 7 is missing C++14 experimental features
           Product: libc++
           Version: 7.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: idart at hotmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Trying to use C++14 experimental features now fails with the following message:
> error "<experimental/[file]> has been removed. Use <[file]> instead.

This error message is printed by the following files:
- <experimental/any>
- <experimental/chrono>
- <experimental/numeric>
- <experimental/optional>
- <experimental/ratio>
- <experimental/string_view>
- <experimental/system_error>
- <experimental/tuple>

I am (was) using <experimental/optional> and <experimental/string_view> in
C++14 code. Which worked (more or less fine) with LLVM 3.8 - 6.0.1, but is now
broken.

Replacing <experimental/optional> with <optional> doesn't work because it only
provides 'std::optional' in C++17 mode, not 'std::experimental::optional' in
C++14 mode - i.e. it's not just a matter of changing include files.

In essence, C++14 experimental features have been removed, which breaks
existing code. Please put them back.

-- 
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/20181012/59f91a13/attachment.html>


More information about the llvm-bugs mailing list