]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [gccrs#2987] Patch ICE when deriving Clone and Copy
authorLiam Naddell <liam.naddell@mail.utoronto.ca>
Fri, 19 Jul 2024 18:19:26 +0000 (14:19 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:53 +0000 (16:35 +0100)
commitc7cdae718c24e7a3f68d7090cc9947df5d848fb8
tree9abb862956383a122a64c30dead38d70779f7727
parent9afadf56ca5ea97e73135891ef7a772a866ac630
gccrs: [gccrs#2987] Patch ICE when deriving Clone and Copy

gcc/rust/ChangeLog:
* expand/rust-expand-visitor.cc:
Fix ICE caused by unique_ptr UB and buggy iterator use

gcc/testsuite/ChangeLog:
* rust/compile/issue-2987.rs:
Add test for deriving Clone and Copy at the same time

Signed-off-by: Liam Naddell <liam.naddell@mail.utoronto.ca>
gcc/rust/expand/rust-expand-visitor.cc
gcc/testsuite/rust/compile/issue-2987.rs [new file with mode: 0644]