[Bug target/97207] New: [nvptx, build] nvptx.c:3539:38: error: no matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 25 11:22:56 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207
Bug ID: 97207
Summary: [nvptx, build] nvptx.c:3539:38: error: no matching
function for call to ‘swap(bracket_vec_t&,
bracket_vec_t&)’
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Building trunk for nvptx on ubuntu 18.04.5 LTS with g++ (Ubuntu
7.5.0-3ubuntu1~18.04) 7.5.0, I run into:
...
src/gcc/config/nvptx/nvptx.c: In member function ‘void bb_sese:
:append(bb_sese*)’:
src/gcc/config/nvptx/nvptx.c:3539:38: error: no matching functi
on for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’
std::swap (brackets, child->brackets);
^
In file included from /usr/include/c++/7/bits/nested_exception.h:40:0,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from src/gcc/config/nvptx/nvptx.c:24:
/usr/include/c++/7/bits/move.h:187:5: note: candidate: template<class _Tp>
typename std::enabl
e_if<std::__and_<std::__not_<std::__is_tuple_like<_Tp> >,
std::is_move_constructible<_Tp>, std
::is_move_assignable<_Tp> >::value>::type std::swap(_Tp&, _Tp&)
swap(_Tp& __a, _Tp& __b)
^~~~
/usr/include/c++/7/bits/move.h:187:5: note: template argument
deduction/substitution failed:
/usr/include/c++/7/bits/move.h: In substitution of ‘template<class _Tp>
typename std::enable_i
f<std::__and_<std::__not_<std::__is_tuple_like<_Tp> >,
std::is_move_constructible<_Tp>, std::i
s_move_assignable<_Tp> >::value>::type std::swap(_Tp&, _Tp&) [with _Tp =
auto_vec<bracket>]’:
...
More information about the Gcc-bugs
mailing list