This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH 1/3] Introduce gdb::unique_ptr
On 10/12/2016 09:11 AM, Metzger, Markus T wrote:
> A simple and pragmatic solution would be a patch to add -std=c++11
> to GDB's compiler options. Pedro already mentioned it but I'm afraid it
> got lost.
Looks like it, yes. As I've explained, we can't do it on src/gdb/
alone, because the CXX make variable is passed down from the top level,
which would override whatever we set in gdb/'s configure/Makefile.
I want to give it a try, though. It just requires time and getting
the patch into gcc and merged back. I don't think that should hold
back the proposed series (or pieces of it).
I wasn't originally meaning to unconditionally add -std=c++11 though,
but instead to only add it if the compiler supports it, in order
to conservatively still support C++03-only compilers.
But if we agree to go full-on C++11, then I'll be more than
happy to make gdb's configure error out on non-C++11 compilers.