[llvm-bugs] [Bug 41714] New: std::tuple<> is not trivially constructible

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 2 11:02:47 PDT 2019


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

            Bug ID: 41714
           Summary: std::tuple<> is not trivially constructible
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Clang -std=c++17 compiles the following if using libstdc++:

#include <tuple>
static_assert(std::is_trivially_constructible_v<std::tuple<>>);

But adding -stdlib=libc++ causes

test.cc:3:1: error: static_assert failed due to requirement
'std::is_trivially_constructible_v<std::__1::tuple<>>

-- 
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/20190502/f2866f36/attachment.html>


More information about the llvm-bugs mailing list