[llvm-bugs] [Bug 31509] New: coroutine builtins "argument of incompatible type"

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 2 00:46:40 PST 2017


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

            Bug ID: 31509
           Summary: coroutine builtins "argument of incompatible type"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: schuett at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17798
  --> https://llvm.org/bugs/attachment.cgi?id=17798&action=edit
Reproducer

Attachments includes stdout, reproducer, and clang call.

What I would like to do is the following:

void foo() {
 __builtin_coro_suspend();
}

void bar() {
  ...
  foo();
  ...
  foo();
}

void *coro() {
  __builtin_coro_id(...);
  __builtin_coro_begin(...);

  bar();

  free(__builtin_coro_free(...))
  __builtin_coro_end(0,0);
  return hdl;
}

Is there anyway to express this?

-- 
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/20170102/f5fa952e/attachment.html>


More information about the llvm-bugs mailing list