From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A74B93858C3A; Sun, 9 Jul 2023 15:56:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A74B93858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688918206; bh=81w5ZK/Eex8XtNu3tQxF+h0o7hbbOHGnzwIoiSuCqIQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rmvV6cR/LdKsdbTj+z+wZ0hWHf9r9RD97VI8N8sVcjIwEjAJ55tGilzVBF6+3WNXJ /CdyneE9s5bUneIz1XJ39+EP8fXHVb/MpAQzWRxxoytigsr8tg0W7gKSkEUpa8ROVx KDyQahSPkz0DMYo3WYWTBdU+jGVouLwRZ7ynJhpk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110580] [14 Regression] gcc fails to typecheck nix-2.16.1 source: error: invalid initialization of reference of type Date: Sun, 09 Jul 2023 15:56:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-bisection, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on bug_status Message-ID: In-Reply-To: References: 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=3D110580 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-07-09 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski --- Reduced un-preprocessed source: ``` #include #include #include struct NarMember { std::map children; }; std::stack parents; std::string_view g(); void createMember(NarMember member) { parents.top()->children.emplace(g(), std::move(member)); } ```=