[LLVMbugs] [Bug 11131] New: decltype crash breaks is_constructable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 14 10:08:11 PDT 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list