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

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

    XMLWordPrintable

Details

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

    Description

      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!

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes