[llvm-bugs] [Bug 40771] New: Segfault in SROA while using the overload deduction guide pattern and copy capture

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 18 23:17:28 PST 2019


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

            Bug ID: 40771
           Summary: Segfault in SROA while using the overload deduction
                    guide pattern and copy capture
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: spyraaleksander at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Godbolt demonstrating the issue: https://godbolt.org/z/Vs3QZe

Clang options: -std=c++17 -O1

#include <string>

template <class... Ts> struct ctad : Ts... {};
template <class... Ts> ctad(Ts...)->ctad<Ts...>;

void crash()
{
    std::string s;
    ctad c {[s](short){}, [s](long){}};
}

-- 
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/20190219/fd36dad7/attachment.html>


More information about the llvm-bugs mailing list