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: unassignedclangb...@nondot.org
          Reporter: blastr...@free.fr
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to