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: unassignedclangb...@nondot.org
          Reporter: matt...@dempsky.org
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to