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

Compile error with clang 5.0.1 in C++17 mode

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.10.0
    • None

    Description

      QtLocation fails to compile (see attached error messages). when libc++ is being used by default not libstdc++.
      This seems like configure step Qt detects that clang 5 supports C+17. However C+17 removes std::auto_ptr which obviously QtLocation relies upon (a rather old Boost 1.62.0 library using it is packaged with Qt in qtlocation/src/3rdparty/mapbox-gl-native/deps/boost/1.62.0).

      A simple solution would be to set the define
      _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR. This define enables std::auto_ptr even
      if clang uses C++17.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tmpsantos Thiago Marcos P. Santos
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes