This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold incremental.cc gcc-9 compiler error
- From: Alan Modra <amodra at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Tulio Magno Quites Machado Filho <tuliom at ascii dot art dot br>, Binutils <binutils at sourceware dot org>
- Date: Mon, 9 Jul 2018 17:18:44 +0930
- Subject: Re: gold incremental.cc gcc-9 compiler error
- References: <20180601045655.GV23663@bubble.grove.modra.org> <20180601103206.GB7660@bubble.grove.modra.org> <CAJimCsE0Twif9W0SBGjE0VwBNM3gcFnMMEUDyBUV4PG_aNA15Q@mail.gmail.com> <CAJimCsHitz3NXF-daE7gSEV2Fgi0q6YS9uHWnX=Vd6GffbQSow@mail.gmail.com> <8736wwt8ms.fsf@linux.ibm.com> <CAJimCsHa+s+Qv3oNUHb7-rGUp5DFw8Z5suFNPb-=PMdfRp8Kqg@mail.gmail.com>
On Sun, Jul 08, 2018 at 06:58:09PM -0700, Cary Coutant wrote:
> Hmmm, according to:
>
> https://gcc.gnu.org/projects/cxx-status.html#cxx11
>
> GCC 4.8.1 is feature complete for C++ 11, so 5.4 should be fine. If
> you compile with -std=c++11, does it compile clean? I guess I may need
> to add that flag.
>
> Does anyone know the earliest version of GCC that supports C++11
> features by default?
I think the default went from c++98 to c++14 in gcc-6.1 (well, the gnu
variants). Perhaps test __cplusplus >= 201103L instead of __GNUC__?
--
Alan Modra
Australia Development Lab, IBM