[llvm-bugs] [Bug 40867] New: ICE in mangleUnresolvedTypeOrSimpleId

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 26 06:59:04 PST 2019


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

            Bug ID: 40867
           Summary: ICE in mangleUnresolvedTypeOrSimpleId
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: antoshkka at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

The following code cause ICE:

template <class T>
int is_vector(T const&, decltype(static_cast<T*>(0)->~vector())* = 0) {
    return 1;
}

template <class T>
int is_vector(T const&, decltype(static_cast<T*>(0)->~deque())* = 0) {
    return 0;
}

template <class T> class vector{};

int test() {
    return is_vector(vector<int>());
}

-- 
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/20190226/860b4859/attachment.html>


More information about the llvm-bugs mailing list