public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Is C++11 to be default for GCC 4.9?
       [not found] ` <alpine.DEB.2.10.1401241021120.3643@laptop-mg.saclay.inria.fr>
@ 2014-01-24  9:36   ` pinskia
  2014-01-24 10:43     ` Lars Hagström
  2014-01-24 10:52     ` Jonathan Wakely
  2014-01-26 16:17   ` Richard Sandiford
  1 sibling, 2 replies; 7+ messages in thread
From: pinskia @ 2014-01-24  9:36 UTC (permalink / raw)
  To: gcc-help; +Cc: Lars Hagström, gcc



> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
  2014-01-24  9:36   ` Is C++11 to be default for GCC 4.9? pinskia
@ 2014-01-24 10:43     ` Lars Hagström
  2014-01-24 10:52     ` Jonathan Wakely
  1 sibling, 0 replies; 7+ messages in thread
From: Lars Hagström @ 2014-01-24 10:43 UTC (permalink / raw)
  To: pinskia; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
  2014-01-24  9:36   ` Is C++11 to be default for GCC 4.9? pinskia
  2014-01-24 10:43     ` Lars Hagström
@ 2014-01-24 10:52     ` Jonathan Wakely
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Wakely @ 2014-01-24 10:52 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: gcc-help, Lars Hagström

On 24 January 2014 09:36,  <pinskia@gmail.com> wrote:
> Considering GCC has not switched to c99 by default what makes someone think GCC should switch to c++11 by default?

A switch might be appropriate at some point in the future. C++11 has
been better received by the C++ community than C99 was by the C
community.  From the people I talk to it seems that users who are
still using C++03 are doing so because they have to stick with an
older compiler. If they have a newer compiler available then a
significant proportion are using C++11.

That might be partly because Microsoft's compiler defaults to C++11
(whereas it doesn't even support C99!)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
       [not found] ` <alpine.DEB.2.10.1401241021120.3643@laptop-mg.saclay.inria.fr>
  2014-01-24  9:36   ` Is C++11 to be default for GCC 4.9? pinskia
@ 2014-01-26 16:17   ` Richard Sandiford
  2014-01-26 22:43     ` Jonathan Wakely
  2014-01-27 16:28     ` Florian Weimer
  1 sibling, 2 replies; 7+ messages in thread
From: Richard Sandiford @ 2014-01-26 16:17 UTC (permalink / raw)
  To: gcc-help; +Cc: Lars Hagström, gcc

Marc Glisse <marc.glisse@inria.fr> writes:
>> 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).

I can definitely sympathise with reading the message the other way though.
If that's the only output you see, the natural assumption is that the
"enabled by default" applies to the thing just before it.

Any objections to changing it to "this warning is enabled by default"
or "warning enabled by default"?  Or is that too verbose?

Thanks,
Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
  2014-01-26 16:17   ` Richard Sandiford
@ 2014-01-26 22:43     ` Jonathan Wakely
  2014-01-27 16:28     ` Florian Weimer
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Wakely @ 2014-01-26 22:43 UTC (permalink / raw)
  To: gcc-help, Lars Hagström, gcc, Richard Sandiford

On 26 January 2014 16:17, Richard Sandiford wrote:
> I can definitely sympathise with reading the message the other way though.
> If that's the only output you see, the natural assumption is that the
> "enabled by default" applies to the thing just before it.
>
> Any objections to changing it to "this warning is enabled by default"
> or "warning enabled by default"?  Or is that too verbose?

The former seems far too verbose to me, I could live with the latter
(even though it's only a few characters shorter!)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
  2014-01-26 16:17   ` Richard Sandiford
  2014-01-26 22:43     ` Jonathan Wakely
@ 2014-01-27 16:28     ` Florian Weimer
  2014-01-27 16:36       ` Marc Glisse
  1 sibling, 1 reply; 7+ messages in thread
From: Florian Weimer @ 2014-01-27 16:28 UTC (permalink / raw)
  To: gcc-help, Lars Hagström, gcc@gcc.gnu.org >> GCC, rdsandiford

On 01/26/2014 05:17 PM, Richard Sandiford wrote:
> Marc Glisse <marc.glisse@inria.fr> writes:
>>> 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).
>
> I can definitely sympathise with reading the message the other way though.
> If that's the only output you see, the natural assumption is that the
> "enabled by default" applies to the thing just before it.
>
> Any objections to changing it to "this warning is enabled by default"
> or "warning enabled by default"?  Or is that too verbose?

We should show the flag that enables the warning, so that users can use 
the -Wno- variant to disable it if they want.  Or does "enabled by 
default" mean that no such -Wno- flag exists?

-- 
Florian Weimer / Red Hat Product Security Team

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Is C++11 to be default for GCC 4.9?
  2014-01-27 16:28     ` Florian Weimer
@ 2014-01-27 16:36       ` Marc Glisse
  0 siblings, 0 replies; 7+ messages in thread
From: Marc Glisse @ 2014-01-27 16:36 UTC (permalink / raw)
  To: Florian Weimer
  Cc: gcc-help, Lars Hagström, gcc@gcc.gnu.org >> GCC, rdsandiford

On Mon, 27 Jan 2014, Florian Weimer wrote:

> On 01/26/2014 05:17 PM, Richard Sandiford wrote:
>> Any objections to changing it to "this warning is enabled by default"
>> or "warning enabled by default"?  Or is that too verbose?

The second one looks fine to me, need to find a real reviewer now ;-)

> We should show the flag that enables the warning, so that users can use the 
> -Wno- variant to disable it if they want.  Or does "enabled by default" mean 
> that no such -Wno- flag exists?

Exactly. -std=c++11 is the right way to make this warning quiet.

-- 
Marc Glisse

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-27 16:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CABUYEh9Rvwg7mu1GfP8bCoGveSR=UDpxd2QSBH8fr_6bPArzcg@mail.gmail.com>
     [not found] ` <alpine.DEB.2.10.1401241021120.3643@laptop-mg.saclay.inria.fr>
2014-01-24  9:36   ` Is C++11 to be default for GCC 4.9? pinskia
2014-01-24 10:43     ` Lars Hagström
2014-01-24 10:52     ` Jonathan Wakely
2014-01-26 16:17   ` Richard Sandiford
2014-01-26 22:43     ` Jonathan Wakely
2014-01-27 16:28     ` Florian Weimer
2014-01-27 16:36       ` Marc Glisse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).