[llvm-bugs] [Bug 43115] New: Clang seg fault triggered by defaulted template template parameter calculated from other template parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 26 04:22:36 PDT 2019


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

            Bug ID: 43115
           Summary: Clang seg fault triggered by defaulted template
                    template parameter calculated from other template
                    parameter
           Product: clang
           Version: 8.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jonesconrad1 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

template <size_t index, typename ARG, E enumVal = static_cast<E>(index),
template <typename> typename CONSTRAINT = PT<enumVal>::template constraint>

line 609827 of attached file coreaudiodevice.mm

and line 609860

it was able to compile once i removed the defaulted type for the template
template parameter CONSTRAINT and moved the "calculation" of this to the
calling function

-- 
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/20190826/ed468046/attachment.html>


More information about the llvm-bugs mailing list