diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-04-12 12:30:09 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-12 14:09:55 -0400 |
commit | 30bf8e1ce4498467d62387b0d8a7009e3fbe2ab1 (patch) | |
tree | 6e22ea5769710bebf4a3b957093951d4b664ce63 /gdb/buildsym.c | |
parent | a09520cdd91a87ada081b065c42256bec2be6946 (diff) | |
download | binutils-30bf8e1ce4498467d62387b0d8a7009e3fbe2ab1.zip binutils-30bf8e1ce4498467d62387b0d8a7009e3fbe2ab1.tar.gz binutils-30bf8e1ce4498467d62387b0d8a7009e3fbe2ab1.tar.bz2 |
gdb: use decltype instead of typeof in dwarf2/read.c
When building with -std=c++11, I get:
CXX dwarf2/read.o
/home/smarchi/src/binutils-gdb/gdb/dwarf2/read.c: In function ‘void dwarf2_build_psymtabs_hard(dwarf2_per_objfile*)’:
/home/smarchi/src/binutils-gdb/gdb/dwarf2/read.c:7130:23: error: expected type-specifier before ‘typeof’
7130 | using iter_type = typeof (per_bfd->all_comp_units.begin ());
| ^~~~~~
This is because typeof is a GNU extension. Use C++'s decltype keyword
instead.
Change-Id: Ieca2e8d25e50f71dc6c615a405a972a54de3ef14
Diffstat (limited to 'gdb/buildsym.c')
0 files changed, 0 insertions, 0 deletions