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

            Bug ID: 40085
           Summary: Incompatibility when inheriting MSVC's STL tuple
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: gufi...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

Created attachment 21246
  --> https://bugs.llvm.org/attachment.cgi?id=21246&action=edit
Compilation output containing the error

Clang is incompatible with some uses of std::tuple using the visual studio STL.
More specifically, when inheriting from it.

    struct Foo : private std::tuple<int> {
        void bar() {
            std::get<0>(*this) = 1;
        }
    };

    int main() {
        Foo f;
        f.bar();
    }

The code above compiles perfectly using GCC (libstdc++), Clang on linux
(libstdc++), and MSVC (using it's own STL).

The mix of clang and MSVC's STL result the compilation error sent as
attachement.

-- 
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