https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871

            Bug ID: 103871
           Summary: [11.2.1/12 Regression] co_await causes build error
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/8zTGKj8Ts

gcc (trunk) fails.
gcc 11.2.0 builds ok.

error:

<source>: In function 'async_task f()':
<source>:28:1: error: array used as initializer
   28 | }
      | ^
ASM generation compiler returned: 1
<source>: In function 'async_task f()':
<source>:28:1: error: array used as initializer
   28 | }
      | ^

Reply via email to