Skip to content

decltype crash breaks is_constructable #11503

@llvmbot

Description

@llvmbot
Bugzilla Link 11131
Resolution FIXED
Resolved on Oct 14, 2011 15:34
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@tkremenek

Extended Description

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
T& D();

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

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

decltype(X(D(), D())) j;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions