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

           Summary: decltype crash breaks is_constructable
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The following test case is reduced libc++'s is_constructable. The case causes
clang to segfault. This bug arose in a boost test case. It's hard to track down
exactly what is going on in boost, because (as always) there are many levels of
code, and clang is crashing.


struct S;

struct __any
{
    __any(...);
};

template<typename T>
T& D();

template <class _Tp, class ..._Args>
decltype(D<_Args>()...)
X(_Tp&&, _Args&& ...);

template <class ..._Args>
int
X(__any, _Args&& ...);

decltype(X(D<S>(), D<int>())) j;

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to