From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 725FB3851C2F; Sat, 6 Jun 2020 13:19:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 725FB3851C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591449555; bh=OjaicWPmIeJ+P3ih8+t0TQxzuPj8dKHsXHYzlSPl4UE=; h=From:To:Subject:Date:From; b=J8js8mH+YKmeyGXZw/jTveLkWT8wjVo7gKpBqfWf9iUYUQvdQfmUsaeMD9yPtfOr9 NoUkruZRRv4dNIbhP+92FnkJ+23USeA6XQCyL4tPUlGTpibIPskcbpWAq/4DG6kuV+ I3wfexoO7zJEUmyHQoH6m5zIou9P1oZSHlgX8S7E= From: "philipp.koegel at mailbox dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95562] New: ICE when using noexcept depending on boolean template parameter Date: Sat, 06 Jun 2020 13:19:15 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: philipp.koegel at mailbox dot org 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 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: Sat, 06 Jun 2020 13:19:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95562 Bug ID: 95562 Summary: ICE when using noexcept depending on boolean template parameter Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: philipp.koegel at mailbox dot org Target Milestone: --- * gcc version: 10.1.0 * system type: x86_64-linux-gnu * configured with: ../gcc-10.1.0/configure --prefix=3D/opt/compiler-explorer/gcc-build/staging --build=3Dx86_64-linux-= gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu --disable-bootstrap --enable-multiarch --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --enable-clocale=3Dgnu --enable-languages=3Dc,c++,fortran= ,ada,d --enable-ld=3Dyes --enable-gold=3Dyes --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-linker-build-id --enable-lto --enable-plugins --enable-threads=3Dposix --with-pkgversion=3DCompiler-Explorer-Build * The command line that triggers the bug: g++ -c noexcept_bug.cpp * Source code that triggers the bug: template struct Functions { void (*func)(void*) noexcept(Nothrow); }; void test() { Functions f{nullptr}; } * Compiler output: : In instantiation of 'struct Functions': :9:21: required from here :4:12: internal compiler error: Segmentation fault 4 | void (*func)(void*) noexcept(Nothrow); | ^~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. * Additional notes: g++ version 9.3 has no issues with the above code.=