This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH 1/3] Introduce gdb::unique_ptr
Sorry, I did not intend to start such a heated discussion.
I think we got hung up on the perceived requirement of having to build
your own GCC. The discussion got a bit too abstract and mentioning GCC 6
as the first to default to C++11 may have been confusing in the heat of the
discussion as "GCC 6 defaults to C++11" may have been misread as "C++11
requires GCC 6".
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.
This documents the required language version and also prevents people
from accidentally using C++14/17/?? features and not noticing it until one of
the buildbot builders complained.
I don't think that requiring C++11 is entirely unreasonable and IMHO
preferable to back-porting standard library features.
Should I be wrong and C++11 is really not doable, I like Pedro's patch
for giving the direction towards C++11. I would still add a compiler option
to enforce C++03 for the above reasons.
Regards,
Markus.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928