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

            Bug ID: 123487
           Summary: internal compiler error: in verify_gimple_stmt, at
                    tree-cfg.cc:5172 while compiling coroutine
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rbaz2 at bloomberg dot net
  Target Milestone: ---

I get the following error while compiling a relatively simple coroutine:

<source>: In function 'void asyncfunc(_Z9asyncfunci.Frame*)':
<source>:223:18: internal compiler error: in verify_gimple_stmt, at
tree-cfg.cc:5172
  223 | coro::task<bool> asyncfunc( // NOLINT(readability-function-size)
      |                  ^~~~~~~~~
0x31ce315 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x31e52e6 internal_error(char const*, ...)
        ???:0
0x103ec90 fancy_abort(char const*, int, char const*)
        ???:0
0x1a6c2dd verify_gimple_in_seq(gimple*, bool)
        ???:0
0x16a244b gimplify_body(tree_node*, bool)
        ???:0
0x16a265c gimplify_function_tree(tree_node*)
        ???:0
0x14a1f57 cgraph_node::analyze()
        ???:0
0x14a52d1 symbol_table::finalize_compilation_unit()
        ???:0
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/cc4qY83P.out file, please attach this to
your bugreport.
Compiler returned: 1

I initially encountered this error on gcc13 but the above reproduction is from
the latest compiler I have access to for testing (15.2).

Godbolt with reproduction: https://godbolt.org/z/6MMson5xE

Reply via email to