[llvm-bugs] [Bug 36261] New: Compilation error in std::tuple when using -fmodules-ts and -std=c++17

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 6 22:15:13 PST 2018


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

            Bug ID: 36261
           Summary: Compilation error in std::tuple when using
                    -fmodules-ts and -std=c++17
           Product: libc++
           Version: 5.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kumaran.santhanam at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Created attachment 19821
  --> https://bugs.llvm.org/attachment.cgi?id=19821&action=edit
compile.sh

1. Install Clang 5.0
2. Download http://releases.llvm.org/5.0.1/libcxx-5.0.1.src.tar.xz
3. Untar the package into a directory
4. Save the attached compile.sh script into the directory
5. ./compile.sh -std=c++11
6. ./compile.sh -std=c++17

Using -std=c++11 succeeds while using -std=c++17 produces a compilation error.

The problem appears to be in the #ifdef block starting at line 993 in the
libcxx-5.0.1.src/include/tuple header file.

-- 
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/20180207/7186e7a5/attachment.html>


More information about the llvm-bugs mailing list