From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 92FB13858C5F; Sun, 5 Mar 2023 11:42:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92FB13858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678016565; bh=SJf2fozNg7EJzonXS2NaJxEC1Ha0dQ9TI879MjvXZBE=; h=From:To:Subject:Date:From; b=OrOQP+6qMUWEqwesxdzJc3Vq7GE36ysvfsjEgtix45mUQCTiArpDrpRWkBhWPMXJO VYebo6ncsX1IsdtqpLEM/DZBPG6Yfhpk+oAzaTvUwW8sk21KyqrR/zH+Kc+e/NXZ/G asqlQd5q4KLQHIKSjZGVl0i6qZF6xUo10Ss4G+j4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] gccrs: Add missing node_id copys in the copy constructors X-Act-Checkin: gcc X-Git-Author: Philip Herron X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 99b3cfe5cdd97dc36b5807ab635e484a7d0c9aa7 X-Git-Newrev: f71f25af741238e911d38874da18a5654fc836f7 Message-Id: <20230305114245.92FB13858C5F@sourceware.org> Date: Sun, 5 Mar 2023 11:42:45 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f71f25af741238e911d38874da18a5654fc836f7 commit f71f25af741238e911d38874da18a5654fc836f7 Author: Philip Herron Date: Fri Mar 3 17:59:00 2023 +0000 gccrs: Add missing node_id copys in the copy constructors Signed-off-by: Philip Herron gcc/rust/ChangeLog: * ast/rust-path.h: add missing copy for node_id Diff: --- gcc/rust/ast/rust-path.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 5f7c5e35f25..a669ef556d7 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -1046,6 +1046,7 @@ public: : has_opening_scope_resolution (other.has_opening_scope_resolution), locus (other.locus) { + node_id = other.node_id; segments.reserve (other.segments.size ()); for (const auto &e : other.segments) segments.push_back (e->clone_type_path_segment ()); @@ -1054,6 +1055,7 @@ public: // Overloaded assignment operator with clone TypePath &operator= (TypePath const &other) { + node_id = other.node_id; has_opening_scope_resolution = other.has_opening_scope_resolution; locus = other.locus;