[Bug target/97207] [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:38:20 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 49271
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49271&action=edit
gzipped preprocessed source

Reproduce:
....
$ g++ -m64 -fno-PIE -c   -O0 -g -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common
-fpreprocessed nvptx.c -Wno-implicit-fallthrough
nvptx.c: In member function ‘void bb_sese::append(bb_sese*)’:
/home/vries/nvptx/trunk/source-gcc/gcc/config/nvptx/nvptx.c:3539:38: error: no
matching function for call to ‘swap(bracket_vec_t&, bracket_vec_t&)’
  std::swap (brackets, child->brackets);
                                      ^
...


More information about the Gcc-bugs mailing list