Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41361

Qt fails to build when C++11 is the default mode in gcc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.4.0 Beta
    • 5.3.2
    • Qt Script
    • None
    • Linux, CentOS 6.5
    • 8b80ca515d50967086fdebb8df746c280fadf240

      Our g++ wrapper sets -std=gnu++11 as default, in order to avoid us having to opt-in hundreds of packages in all their myriad different ways. This may be evil, but you don't necessarily know that GCC won't make this the default in the future, so I'd say Qt should Do The Right Thing™.

      Deep within the Qt build, a failure originates from WebKit. Apparently WebKit does not build with C++11. Armed with this knowledge, I contend that Qt should be passing an explicit -std=c++98 to the build for the WebKit portion of the code. It is happy to pass an explicit -std=c++11 for the rest, so this seems reasonable IMO.

      Thanks!

        For Gerrit Dashboard: QTBUG-41361
        # Subject Branch Project Status CR V

            allan.jensen Allan Sandfeld Jensen
            alex-weej Alexander Jones
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes