This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is C++11 to be default for GCC 4.9?
- From: Lars Hagström <lars at foldspace dot nu>
- To: pinskia at gmail dot com
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 24 Jan 2014 11:43:00 +0100
- Subject: Re: Is C++11 to be default for GCC 4.9?
- Authentication-results: sourceware.org; auth=none
- References: <CABUYEh9Rvwg7mu1GfP8bCoGveSR=UDpxd2QSBH8fr_6bPArzcg at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1401241021120 dot 3643 at laptop-mg dot saclay dot inria dot fr> <E1ABFB48-E0A9-4239-AA0C-3978EF25076B at gmail dot com>
Thanks for the quick answer, and sorry for posting to the wrong list.
In my defense I did google quite a lot and found some people thinking
that GCC might switch, and some that it might not.
And mainly I was just hopeful, since I was hoping that the ABI
compatibility issues with boost in linux package repositories would
resolve itself within a few years...
One reference from the Debian mailing lists:
https://lists.debian.org/debian-devel/2013/08/msg00117.html
Anyway, thanks again. And now I'll have to go and reconsider my
alternatives of if I can get to use C++11...
/Lars
On Fri, Jan 24, 2014 at 10:36 AM, <pinskia@gmail.com> wrote:
>
>
>> On Jan 24, 2014, at 1:26 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>>
>> Wrong list, please send any follow-ups to gcc-help@gcc.gnu.org only.
>>
>>> On Fri, 24 Jan 2014, Lars Hagström wrote:
>>>
>>> I'm wondering whether GCC 4.9 will switch to -std=gnu++11 as default?
>>
>> No. This is asked regularly, google should find the answer easily.
>
> Considering GCC has not switched to c99 by default what makes someone think GCC should switch to c++11 by default?
>
> -- Andrew
>
>>
>>> I got an error that implies that "auto" is not usable, which would
>>> mean that C++11 is not enabled, but I also got a warning that implied
>>> that gnu++11 is "enabled by default".
>>>
>>>> error: ‘xdir’ does not name a type
>>>
>>>> warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
>>>
>>> Or does the "enabled by default" bit mean something other than I think it means?
>>
>> It is the warning that is enabled by default (in other messages you would see [-Wunused] or [-Wformat] etc to tell you which option controls this warning).
>>
>> --
>> Marc Glisse