[llvm-bugs] [Bug 38536] New: ICE on template specialization

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 12 14:21:12 PDT 2018


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

            Bug ID: 38536
           Summary: ICE on template specialization
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: v.reshetnikov at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

/************* BEGIN SOURCE *************/
template<class>
struct S {
    template<bool...>
    struct X;
};

template<>
template<bool v>
struct S<int>::X<v> {
    static constexpr bool value = v;
};

static_assert(S<int>::X<true>::value);
/************** END SOURCE **************/

clang-8: error: unable to execute command: Segmentation fault (core dumped)
clang-8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 8.0.0 (trunk 339506)
Target: x86_64-unknown-linux-gnu

-- 
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/20180812/93ea8860/attachment.html>


More information about the llvm-bugs mailing list