From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BF193861970; Thu, 9 Jul 2020 21:20:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BF193861970 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594329619; bh=oWZgOpi0WMcN3obyBoCjQkQuGJ8wt4rX6Pu3GakRPpE=; h=From:To:Subject:Date:From; b=ib+ljaqhCtiszl6LBZlOhpvir+bSJX9wtXBNtHzg2s0OVVqpNUneaHwIswadWQOLs O5AGG6J4FYzC3JYvg4Hsbi2tzinHdupAveWNKvSG4huduquiV95bhokxnjmaXvZ5OE d49hi6jZSSMiGI0LMaMJWBrdpwgxxUieGtkc9cqE= From: "familiebaumanns at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96141] New: Coroutine and noexcept(false) destructor cause: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 Date: Thu, 09 Jul 2020 21:20:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: familiebaumanns at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 21:20:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96141 Bug ID: 96141 Summary: Coroutine and noexcept(false) destructor cause: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: familiebaumanns at gmail dot com Target Milestone: --- Created attachment 48853 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48853&action=3Dedit Source file Expected Behaviour: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Compile without error. Actual Behaviour: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 If the destructor of "Data" is changed to noexcept(true) - no compile error occurs. G++-Version: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D g++-11 (GCC) 11.0.0 20200630 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiler Output: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D g++-11 -fcoroutines -std=3Dc++2a coroutine_error.cpp coroutine_error.cpp: In function =E2=80=98std::generator Do()=E2=80=99: coroutine_error.cpp:280:1: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 280 | } | ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Extended Compiler-Output: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D g++-11 -v -save-temps -fcoroutines -std=3Dc++2a coroutine_error.cpp bernd@bernd-pc:/mnt/c/Users/Bernd/Desktop$ g++-11 -v -save-temps -fcoroutin= es -std=3Dc++2a coroutine_error.cpp Using built-in specs. COLLECT_GCC=3Dg++-11 COLLECT_LTO_WRAPPER=3D/usr/local/gcc-11/libexec/gcc/x86_64-linux-gnu/11.0.0= /lto-wrapper Target: x86_64-linux-gnu Configured with: ../gcc-master/configure -v --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu --prefix=3D/usr/local= /gcc-11 --enable-checking=3Drelease --enable-languages=3Dc,c++ --disable-multilib --program-suffix=3D-11 Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200630 (experimental) (GCC) COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fcoroutines' '-std=3Dc++20' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' '-dumpdir' 'a-' /usr/local/gcc-11/libexec/gcc/x86_64-linux-gnu/11.0.0/cc1plus -E -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE coroutine_error.cpp -mtune=3Dgen= eric -march=3Dx86-64 -std=3Dc++20 -fcoroutines -fpch-preprocess -o a-coroutine_e= rror.ii ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/../../../../x86_64-linux= -gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/../../../../include/c++/1= 1.0.0 /usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/../../../../include/c++/1= 1.0.0/x86_64-linux-gnu /usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/../../../../include/c++/1= 1.0.0/backward /usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/include /usr/local/include /usr/local/gcc-11/include /usr/local/gcc-11/lib/gcc/x86_64-linux-gnu/11.0.0/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fcoroutines' '-std=3Dc++20' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' '-dumpdir' 'a-' /usr/local/gcc-11/libexec/gcc/x86_64-linux-gnu/11.0.0/cc1plus -fpreprocess= ed a-coroutine_error.ii -quiet -dumpdir a- -dumpbase coroutine_error.cpp -dumpbase-ext .cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dc++20 -version -fcoroutines -o a-coroutine_error.s GNU C++20 (GCC) version 11.0.0 20200630 (experimental) (x86_64-linux-gnu) compiled by GNU C version 11.0.0 20200630 (experimental), GMP versi= on 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++20 (GCC) version 11.0.0 20200630 (experimental) (x86_64-linux-gnu) compiled by GNU C version 11.0.0 20200630 (experimental), GMP versi= on 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: bb9157b4f3559041919c25088e2affde coroutine_error.cpp: In function =E2=80=98std::generator Do()=E2=80=99: coroutine_error.cpp:280:1: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2817 280 | } | ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.=