Is C++11 to be default for GCC 4.9?

Ryan Hill dirtyepic@gentoo.org
Sun Feb 2 08:05:00 GMT 2014


On Sun, 26 Jan 2014 16:17:08 +0000
Richard Sandiford <rdsandiford@googlemail.com> 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?

If there's no flag to toggle the warning then why print anything?  To me
"enabled by default" implies there's some way to disable it.


-- 
Ryan Hill                        psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E  7F92 ED38 BD49 957A 8463
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20140202/0038324e/attachment.sig>


More information about the Gcc mailing list