From: Arthur Cohen Date: Tue, 19 Mar 2024 12:12:20 +0000 (+0100) Subject: macro: Use MacroInvocation's node_id in ExternalItem constructor. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb56ef014effb17af27ab7baf0d87bc8bc48a0c;p=thirdparty%2Fgcc.git macro: Use MacroInvocation's node_id in ExternalItem constructor. gcc/rust/ChangeLog: * ast/rust-macro.h: Use proper node id instead of the one in the base Expr class - which is uninitialized. --- diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5b9ff3f22c88..507e595e3790 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -727,7 +727,7 @@ private: {} MacroInvocation (const MacroInvocation &other) - : TraitItem (other.locus), ExternalItem (Expr::node_id), + : TraitItem (other.locus), ExternalItem (other.node_id), outer_attrs (other.outer_attrs), locus (other.locus), node_id (other.node_id), invoc_data (other.invoc_data), is_semi_coloned (other.is_semi_coloned), kind (other.kind),