[llvm-bugs] [Bug 25840] New: std::tuple<int, std::pair<int, NonDefaultConstructible>> compiler failure

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 15 15:27:02 PST 2015


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

            Bug ID: 25840
           Summary: std::tuple<int, std::pair<int,
                    NonDefaultConstructible>> compiler failure
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthew at dempsky.org
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

Created attachment 15458
  --> https://llvm.org/bugs/attachment.cgi?id=15458&action=edit
clang++ -std=c++11 -nostdinc++ -I path/to/libcxx/include -c /tmp/repro.cc

With clang++ 255169 and libc++ 255702, this source file fails to compile:

    #include <tuple>
    #include <utility>

    using namespace std;

    struct S {
      explicit S(int); // no default constructor
    };

    void f() {
      // ok
      make_pair(0, S(0));
      make_tuple(0, S(0));
      make_tuple(make_pair(0, S(0)));

      // FAIL
      make_tuple(0, make_pair(0, S(0)));  
    }

-- 
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/20151215/27bd6f3a/attachment-0001.html>


More information about the llvm-bugs mailing list