From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4043438449C0; Thu, 25 Apr 2024 13:41:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4043438449C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714052477; bh=+ITZrTTXhOEP447YCTQMRmKK3q0rdu6NhJ1K/S+sMeQ=; h=From:To:Subject:Date:From; b=it7wAHMQZ1iZUd1DBgztyeI6K/umArKtRxOHvZ3uDiNpENL9tmvBfChcXjSZX+9lU bB1joss6hTeWL7RRZRZ5eEFiE4wDQe8FzjRGHXGud5thuSIGVoUrW5P6I9q07L5l6v GS6tKlw2BV+c57orTQBA3IJ6QhWqb2MzsxqdxMh8= From: "dani at danielbertalan dot dev" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114854] New: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 Date: Thu, 25 Apr 2024 13:41:16 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dani at danielbertalan dot dev 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114854 Bug ID: 114854 Summary: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dani at danielbertalan dot dev Target Milestone: --- Compiling the following code results in an internal compiler error when usi= ng GCC 14 trunk (gcc-14-10094-g0c8e99e5c32). GCC 13.2 is fine with it. class Vector { long m_size; }; struct ProcessSpawnOptions { Vector const &file_actions {}; }; void spawn(ProcessSpawnOptions); void test() { spawn({}); } : In function 'void test()': :9:20: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:900 9 | void test() { spawn({}); } | ~~~~~^~~~ Godbolt: https://ice.godbolt.org/z/zP3K37476=