This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix use-after-move in compile/compile-cplus-types.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 17 Sep 2018 15:50:15 -0400
- Subject: [binutils-gdb] Fix use-after-move in compile/compile-cplus-types.c
*** TEST RESULTS FOR COMMIT 461464f22632163209937ba5128d1f9f32554ea3 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 461464f22632163209937ba5128d1f9f32554ea3
Fix use-after-move in compile/compile-cplus-types.c
Patch
d82b3862f12 ("compile: Remove non-const reference parameters")
introduced a regression in compile/compile-cplus-types.c. The new_scope
variable in compile_cplus_instance::enter_scope is used after it was
std::moved. This patch fixes it by referring to the back of the vector
where it was moved instead.
gdb/ChangeLog:
* compile/compile-cplus-types.c
(compile_cplus_instance::enter_scope): Don't use new_scope after
std::move.