[LLVMbugs] [Bug 16689] New: clang crashes with libstdc++ tuples

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 24 01:33:40 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16689

            Bug ID: 16689
           Summary: clang crashes with libstdc++ tuples
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mustrumr97 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10917
  --> http://llvm.org/bugs/attachment.cgi?id=10917&action=edit
Source, output and gdb backtrace

This program:
    #include <tuple>
    template<class X, int Y>
    struct a: public X{
        using X::X;
    };
    int main(){
        auto x=a<std::tuple<int, int>, 42>();
    }
makes clang crash.

The problem doesn't happen with libstdc++.
The problem is in the assignment - without it the program compiles fine.
The problem only happens with two-argument tuples.
The problem only happens when the Y parameter is non-class.
The problem does not depend on the value of Y.

-- 
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/20130724/c108ed63/attachment.html>


More information about the llvm-bugs mailing list