[llvm-bugs] [Bug 39819] New: clang crash with co_await in an auto-lambda in a function template

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 28 01:49:27 PST 2018


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

            Bug ID: 39819
           Summary: clang crash with co_await in an auto-lambda in a
                    function template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: blastrock at free.fr
                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 program makes clang crash:

template <typename b> void c(b) {
  [](auto client) { co_await client; };
}
int main() { c(0); }

Compiled with: clang++ -std=c++17 -fcoroutines-ts

Godbolt link: https://godbolt.org/z/bNEkkq

-- 
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/20181128/68e7113d/attachment.html>


More information about the llvm-bugs mailing list