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

            Bug ID: 33998
           Summary: Crash on coroutines builtins
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: seth.cantr...@gmail.com
                CC: llvm-bugs@lists.llvm.org

A source file containing the below sequence of tokens causes clang to crash
when compiling using the flags "-std=c++2a -O0 -fcoroutines-ts". Crash in
Godbolt's compiler explorer: https://godbolt.org/g/yKHPDH

alignas(16) unsigned char preallocated[1024];

void f() {
    void *builtin_id_return = __builtin_coro_id(16, &preallocated, nullptr,
nullptr);
    void *frame = __builtin_coro_begin(builtin_id_return);
}

-- 
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