diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57b85dce76d..77531109a42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-10-03 Simon Marchi + + * dwarf2read.c (read_func_scope): Remove struct keyword in + range-based for. + 2018-10-03 Tom Tromey * README: Mention --enable-ubsan. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7004299a914..929a8be7387 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -13835,7 +13835,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) though they don't appear in this symtab directly, other parts of gdb assume that symbols do, and this is reasonably true. */ - for (struct symbol *sym : template_args) + for (symbol *sym : template_args) symbol_set_symtab (sym, symbol_symtab (templ_func)); }