Announcement

Collapse
No announcement yet.

GCC 6 Will Look To Switch To C++11 By Default

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GCC 6 Will Look To Switch To C++11 By Default

    Phoronix: GCC 6 Will Look To Switch To C++11 By Default

    With GCC 5 the C compiler changed its default to C11/GNU11 and now for the next version, GCC 6, C++11 might become the default C++ language compiler target...

    http://www.phoronix.com/scan.php?pag...PP-11-Proposal

  • #2
    This is a rather big deal, because C++11 breaks the ABI in key places:

    https://gcc.gnu.org/wiki/Cxx11AbiCompatibility

    C++14 introduces even greater breakage.

    Be careful out there, kids.

    Comment


    • #3
      Originally posted by emblemparade View Post
      This is a rather big deal, because C++11 breaks the ABI in key places:

      https://gcc.gnu.org/wiki/Cxx11AbiCompatibility

      C++14 introduces even greater breakage.

      Be careful out there, kids.
      Not entirely right - if you use gcc 5.1 and compile code as C++03 you will get the exact same breakage, switching to C++11 wont make a difference. The breakage is in libstdc++, and while this comes from stricter requirements from C++11 this is an completely independent issue (it wont make any difference which value for -std you use). PS. just about any GCC version the last five years broke the binary abi too, just look at the fabi-version switch.

      Comment


      • #4
        Originally posted by discordian View Post
        Not entirely right - if you use gcc 5.1 and compile code as C++03 you will get the exact same breakage, switching to C++11 wont make a difference. The breakage is in libstdc++, and while this comes from stricter requirements from C++11 this is an completely independent issue (it wont make any difference which value for -std you use). PS. just about any GCC version the last five years broke the binary abi too, just look at the fabi-version switch.
        Scratch that, I shouldve red the link before replying. You are right, and I was talking about the changed String Implementation (amongst other stuff)

        Comment


        • #5
          Make C++14 the default instead, being a bug-fix of C++11 it has more staying power.

          Comment


          • #6
            - Scratch that, I shouldve red the link before replying. You are right, and I was talking about the changed String Implementation (amongst other stuff) With all the breakage being in the libstdc++ your comment is still relevant. Btw. New forum is really broken. So many things don't work, quoting for instance.

            Comment


            • #7
              Originally posted by carewolf View Post
              With all the breakage being in the libstdc++ your comment is still relevant.
              there is no breakage in libstdc++, it supports both abis. you too should read before posting

              Comment


              • #8
                Originally posted by carewolf View Post
                So many things don't work, quoting for instance.
                PEBKAC

                Comment

                Working...
                X