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

make_unique is not a member of 'std'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0 Beta 1
    • None
    • RHEL7.2. See attachment for build dump and environment
    • Linux/X11

      Trying to build 5.12.0 beta1 on RHEL v7.2 but fails with

      In file included from ../3rdparty/masm/yarr/YarrInterpreter.h:29:0,
                       from ../../include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/jsruntime/qv4regexp_p.h:63,
                       from ../../include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/jsruntime/qv4regexpobject_p.h:61,
                       from ../../include/QtQml/5.12.0/QtQml/private/qv4regexpobject_p.h:1,
                       from compiler/qv4compileddata.cpp:47:
      ../3rdparty/masm/yarr/YarrPattern.h: In member function ‘JSC::Yarr::PatternAlternative* JSC::Yarr::PatternDisjunction::addNewAlternative()’:
      ../3rdparty/masm/yarr/YarrPattern.h:315:31: error: ‘make_unique’ is not a member of ‘std’
               m_alternatives.append(std::make_unique<PatternAlternative>(this));
                                     ^
      ../3rdparty/masm/yarr/YarrPattern.h:315:66: error: expected primary-expression before ‘>’ token
               m_alternatives.append(std::make_unique<PatternAlternative>(this));
      

      Believe this is part of C++14.

      So is C++14 a dependency on using v5.12?

      We currently use C++11.

        1. environment.txt
          2 kB
          Ian Chung
        2. buildD.zip
          147 kB
          Ian Chung
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            iwyc Ian Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes