From: Steve Ellcey <sellcey@caviumnetworks.com>
To: gdb@sourceware.org
Subject: GDB build failure when using latest (ToT) GCC
Date: Mon, 27 Feb 2017 19:51:00 -0000 [thread overview]
Message-ID: <1488225059.2866.220.camel@caviumnetworks.com> (raw)
I am building the ToT gdb with a ToT GCC and getting this error:
../../../src/binutils-gdb/gdb/remote.c: In function âint remote_add_target_side_
condition(gdbarch*, bp_target_info*, char*, char*)â:
../../../src/binutils-gdb/gdb/remote.c:9668:8: error: types may not be defined i
n a for-range-declaration [-fpermissive]
   for (struct agent_expr *aexpr : bp_tgt->conditions)
        ^~~~~~
Makefile:1898: recipe for target 'remote.o' failed
Does anyone know how to change this code so that GCC will not complain?
I am not familiar with C++ for ranges. I get a bunch of warnings too, but this
is a hard error that stops my compilation.  Yes, I can use -fpermissive but I
would rather not and this will need to be fixed when GCC 7.X comes out.
Steve Ellcey
sellcey@cavium.com
next reply other threads:[~2017-02-27 19:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 19:51 Steve Ellcey [this message]
2017-02-27 19:57 ` Simon Marchi
2017-02-27 21:11 ` Steve Ellcey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488225059.2866.220.camel@caviumnetworks.com \
--to=sellcey@caviumnetworks.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox