<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - libstdc++ 5.3.1: fail to build with "call to implicitly-deleted copy constructor of 'RTLsTy'""
   href="https://bugs.llvm.org/show_bug.cgi?id=48973">48973</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libstdc++ 5.3.1: fail to build with "call to implicitly-deleted copy constructor of 'RTLsTy'"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Runtime Library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sylvestre@debian.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cd
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/projects/openmp/libomptarget/src"
&&
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/./bin/clang++"
-DOMPTARGET_PROFILE_ENABLED -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/projects/openmp/libomptarget/src"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/include"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/llvm/include"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/include"
-fuse-ld=gold -fPIC -Wno-unused-command-line-argument
-Wno-unknown-warning-option -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-ffunction-sections -fdata-sections -Wall -Wcast-qual -Wformat-pedantic
-Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic
-Wno-maybe-uninitialized -std=gnu++14 -O2 -DNDEBUG -g1 -fPIC  -fno-exceptions
-std=c++14 -o CMakeFiles/omptarget.dir/interface.cpp.o -c
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp"


In file included from
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp:14:
In file included from
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/device.h:19:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/map:61:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/stl_map.h:63:
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:115:4:
error: call to implicitly-deleted copy constructor of 'RTLsTy'
        : _M_head_impl(std::forward<_UHead>(__h)) { }
          ^            ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:369:9:
note: in instantiation of function template specialization 'std::_Head_base<1,
RTLsTy, false>::_Head_base<RTLsTy>' requested here
      : _Base(std::forward<_Head>(_M_head(__in))) { }
        ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:221:9:
note: in instantiation of member function 'std::_Tuple_impl<1,
RTLsTy>::_Tuple_impl' requested here
      : _Inherited(std::move(_M_tail(__in))), 
        ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:617:17:
note: in instantiation of member function 'std::_Tuple_impl<0,
std::_Mem_fn<void (RTLsTy::*)()>, RTLsTy>::_Tuple_impl' requested here
      constexpr tuple(tuple&&) = default;
                ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/functional:1514:7:
note: in defaulted move constructor for 'std::tuple<std::_Mem_fn<void
(RTLsTy::*)()>, RTLsTy>' first required here
      _Bind_simple(_Bind_simple&&) = default;
      ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/mutex:726:30:
note: in defaulted move constructor for 'std::_Bind_simple<std::_Mem_fn<void
(RTLsTy::*)()> (RTLsTy)>' first required here
      auto __bound_functor = std::__bind_simple(std::forward<_Callable>(__f),
                             ^
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp:97:8:
note: in instantiation of function template specialization 'std::call_once<void
(RTLsTy::*)(), RTLsTy &>' requested here
  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs);
       ^
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/rtl.h:126:18:
note: copy constructor of 'RTLsTy' is implicitly deleted because field
'initFlag' has a deleted copy constructor
  std::once_flag initFlag;
                 ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/mutex:689:5:
note: 'once_flag' has been explicitly marked deleted here
    once_flag(const once_flag&) = delete;
    ^</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>