binutils-gdb/gdb/compile
Simon Marchi 461464f226 Fix use-after-move in compile/compile-cplus-types.c
Patch

  d82b3862f1 ("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.
2018-09-17 13:11:07 -04:00
..
compile-c-support.c compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-c-symbols.c compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-c-types.c compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-c.h compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-cplus-symbols.c compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-cplus-types.c Fix use-after-move in compile/compile-cplus-types.c 2018-09-17 13:11:07 -04:00
compile-cplus.h compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-internal.h compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-loc2c.c compile: Remove non-const reference parameters 2018-09-06 13:48:15 +01:00
compile-object-load.c Return std::string from gdb_bfd_errmsg 2018-09-13 16:22:34 -06:00
compile-object-load.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-object-run.c Use BLOCK_ENTRY_PC in place of most uses of BLOCK_START 2018-08-23 16:19:18 -07:00
compile-object-run.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile.c python: Make gdb.execute("show commands") work (PR 23669) 2018-09-17 08:26:24 -04:00
compile.h python: Make gdb.execute("show commands") work (PR 23669) 2018-09-17 08:26:24 -04:00
gcc-c-plugin.h Add a C++ wrapper for GCC C plug-in 2018-08-10 11:14:25 -07:00
gcc-cp-plugin.h C++ compile support 2018-08-29 15:12:24 -07:00