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

make_unique is not a member of 'std'

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. buildD.zip
          147 kB
        2. environment.txt
          2 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes