https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120641
--- Comment #5 from Pierre Ossman <ossman at cendio dot se> --- Created attachment 61631 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61631&action=edit GestureHandler.cxx.ii (xz compressed) Preprocessed output as the result of this run: > arm-none-linux-gnueabi-g++ -DBUILD_TIMESTAMP="\"2025-06-13 09:11\"" > -DHAVE_CONFIG_H -DHAVE_NETTLE -DHAVE_XDAMAGE -DHAVE_XFIXES -DHAVE_XRANDR > -DHAVE_XTEST -D_FORTIFY_SOURCE=2 > -I/local/home/ossman/devel/tigervnc/builddir/armhf > -I/local/home/ossman/devel/tigervnc/common -isystem > /usr/arm-none-linux-gnueabi/sys-root/usr/include/pixman-1 -g > -fdiagnostics-color -std=gnu++11 -Wall -Wextra -Wformat=2 -Wvla > -Wzero-as-null-pointer-constant -Wsuggest-override -Wshadow -g -D_DEBUG -Og > -Werror -MD -MT vncviewer/CMakeFiles/vncviewer.dir/GestureHandler.cxx.o -MF > CMakeFiles/vncviewer.dir/GestureHandler.cxx.o.d -o > CMakeFiles/vncviewer.dir/GestureHandler.cxx.o -c > /local/home/ossman/devel/tigervnc/vncviewer/GestureHandler.cxx -save-temps > In file included from /usr/arm-none-linux-gnueabi/include/c++/15.1.0/set:64, > from > /local/home/ossman/devel/tigervnc/common/core/Configuration.h:51, > from > /local/home/ossman/devel/tigervnc/common/core/LogWriter.h:26, > from > /local/home/ossman/devel/tigervnc/vncviewer/GestureHandler.cxx:27: > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_tree.h: In member > function 'std::pair<typename std::__rb_tree::_Node_traits<_Val, typename > __gnu_cxx::__alloc_traits<typename > __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Val>::other>::pointer>::_Base_ptr, > typename std::__rb_tree::_Node_traits<_Val, typename > __gnu_cxx::__alloc_traits<typename > __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Val>::other>::pointer>::_Base_ptr> > std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, > _Alloc>::_M_get_insert_hint_unique_pos(const_iterator, const key_type&) [with > _Key = int; _Val = std::pair<const int, GestureHandler::GHTouch>; _KeyOfValue > = std::_Select1st<std::pair<const int, GestureHandler::GHTouch> >; _Compare = > std::less<int>; _Alloc = std::allocator<std::pair<const int, > GestureHandler::GHTouch> >]': > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_tree.h:2832:5: note: > parameter passing for argument of type 'std::_Rb_tree<int, std::pair<const > int, GestureHandler::GHTouch>, std::_Select1st<std::pair<const int, > GestureHandler::GHTouch> >, std::less<int>, std::allocator<std::pair<const > int, GestureHandler::GHTouch> > >::const_iterator' changed in GCC 7.1 > 2832 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_tree.h: In member > function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, > _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = > {const std::piecewise_construct_t&, std::tuple<const int&>, std::tuple<>}; > _Key = int; _Val = std::pair<const int, GestureHandler::GHTouch>; _KeyOfValue > = std::_Select1st<std::pair<const int, GestureHandler::GHTouch> >; _Compare = > std::less<int>; _Alloc = std::allocator<std::pair<const int, > GestureHandler::GHTouch> >]': > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_tree.h:3080:7: note: > parameter passing for argument of type 'std::_Rb_tree<int, std::pair<const > int, GestureHandler::GHTouch>, std::_Select1st<std::pair<const int, > GestureHandler::GHTouch> >, std::less<int>, std::allocator<std::pair<const > int, GestureHandler::GHTouch> > >::const_iterator' changed in GCC 7.1 > 3080 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from /usr/arm-none-linux-gnueabi/include/c++/15.1.0/map:65, > from > /local/home/ossman/devel/tigervnc/vncviewer/GestureHandler.h:24, > from > /local/home/ossman/devel/tigervnc/vncviewer/GestureHandler.cxx:30: > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_map.h: In member > function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, > _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = > GestureHandler::GHTouch; _Compare = std::less<int>; _Alloc = > std::allocator<std::pair<const int, GestureHandler::GHTouch> >]': > /usr/arm-none-linux-gnueabi/include/c++/15.1.0/bits/stl_map.h:536:44: note: > parameter passing for argument of type 'std::_Rb_tree<int, std::pair<const > int, GestureHandler::GHTouch>, std::_Select1st<std::pair<const int, > GestureHandler::GHTouch> >, std::less<int>, std::allocator<std::pair<const > int, GestureHandler::GHTouch> > >::const_iterator' changed in GCC 7.1 > 536 | __i = _M_t._M_emplace_hint_unique(__i, > std::piecewise_construct, > | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 537 | std::tuple<const > key_type&>(__k), > | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 538 | std::tuple<>()); > | ~~~~~~~~~~~~~~~