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

            Bug ID: 98118
           Summary: [coroutines] ICE with coroutine with parameter with
                    non-trivial destructor
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xzlsmc at gmail dot com
  Target Milestone: ---

Created attachment 49670
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49670&action=edit
source

See attached source and ii files.
Compiler arguments: `-v -save-temps -std=c++20 -fcoroutines -O1 -S -c bug.cc -o
bug.S`
```
bug.cc: In function ‘fire_and_forget f(bug)’:
bug.cc:17:1: internal compiler error: in cp_build_addr_expr_1, at
cp/typeck.c:6338
   17 | }
      | ^
```
This should not be a duplicate of #93642, #95616 or #96141.

`gcc -v`:
```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC)
```

Reply via email to