[CMake] GCC: -std=g++14 vs -std=c++14

Elizabeth A. Fischer elizabeth.fischer at columbia.edu
Wed Jun 15 12:18:36 EDT 2016


That seems wrong to me.  Regardless of how proud the  compiler makers are
of their extensions, the language you're using should depend as little as
possible (by default) on the compiler you choose.
-- Elizabeth

On Wed, Jun 15, 2016 at 11:48 AM, Robert Maynard <robert.maynard at kitware.com
> wrote:

> This is correct. The default for GCC has always been to enable gcc
> extensions, with GCC < 6 having a default of gnu++98, and GCC 6 having
> a default of gnu++14
>
> On Wed, Jun 15, 2016 at 11:00 AM, Patrick Boettcher
> <patrick.boettcher at posteo.de> wrote:
> > On Wed, 15 Jun 2016 10:50:13 -0400
> > "Elizabeth A. Fischer" <elizabeth.fischer at columbia.edu> wrote:
> >
> >> Why are these extensions not turned off by default?  Normally, things
> >> should conform to the standards out-of-the-box; and you should have to
> >> explicitly enable extensions.  Following that principle would have
> >> avoided this entire thread.
> >
> > Well, I'd not be surprised if the expected standard for gcc users is
> > --std=gnu++14 instead of --std=c++14 . That could be a good explanation.
> >
> > regards,
> > --
> > Patrick.
> > --
> >
> > Powered by www.kitware.com
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> >
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160615/cd5cb903/attachment.html>


More information about the CMake mailing list