https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868
Bug ID: 103868 Summary: ICE at end of coroutine when using asio Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ashenglandelbro at protonmail dot com Target Milestone: --- gcc info: Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc Target: x86_64-pc-linux-gnu gcc version 11.1.0 (GCC) ------------ error message: /usr/bin/g++ -DBOOST_BEAST_USE_STD_STRING_VIEW -DFMT_LOCALE -DMALLOY_EXPORT_STATIC_DEFINE -DMALLOY_FEATURE_HTML -DMALLOY_FEATURE_TLS -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/home/ash/sources/malloy/test/3rdparty/doctest -I/home/ash/sources/malloy/lib -I/home/ash/sources/malloy/lib/malloy/.. -I/home/ash/sources/malloy/build/_deps/spdlog-src/include -I/home/ash/sources/malloy/build/_deps/fmt-src/include -g -std=gnu++20 -MD -MT test/CMakeFiles/malloy-tests.dir/test_suites/components/websockets.cpp.o -MF test/CMakeFiles/malloy-tests.dir/test_suites/components/websockets.cpp.o.d -o test/CMakeFiles/malloy-tests.dir/test_suites/components/websockets.cpp.o -c /home/ash/sources/malloy/test/test_suites/components/websockets.cpp during RTL pass: expand /home/ash/sources/malloy/test/test_suites/components/websockets.cpp: In function ‘void {anonymous}::_ZN12_GLOBAL__N_122client_ws_handler_coroILb0EEEN5boost4asio9awaitableIvNS2_15any_io_executorEEENS1_6system10error_codeESt10shared_ptrIN6malloy9websocket10connectionILb1EEEE.actor({anonymous}::client_ws_handler_coro<false>(malloy::error_code, std::shared_ptr<malloy::websocket::connection<true> >)::_ZN12_GLOBAL__N_122client_ws_handler_coroILb0EEEN5boost4asio9awaitableIvNS2_15any_io_executorEEENS1_6system10error_codeESt10shared_ptrIN6malloy9websocket10connectionILb1EEEE.frame*)’: /home/ash/sources/malloy/test/test_suites/components/websockets.cpp:51:5: internal compiler error: in make_decl_rtl, at varasm.c:1422 51 | } | ^ 0x1797368 internal_error(char const*, ...) ???:0 0x67f8f9 fancy_abort(char const*, int, char const*) ???:0 0xa1cdef expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0xa1bad9 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0xa26f9f store_expr(tree_node*, rtx_def*, int, bool, bool) ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.archlinux.org/> for instructions. ----------- I have attached the .ii file generated. Please let me know if more information is needed