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

Arsen Arsenović <arsen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arsen at gcc dot gnu.org

--- Comment #12 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
I also get this issue on GCC 15 interestingly enough:

// Target: x86_64-pc-linux-gnu
// Configured with:
/var/tmp/portage/sys-devel/gcc-15.3.1_p20261009/work/gcc-15-20261009/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust,jit
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 15.3.1_p20261009 p8'
--with-gcc-major-version-only --enable-libstdcxx-time --enable-lto
--disable-libstdcxx-pch --enable-linker-build-id --enable-libada
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64
--disable-fixed-point --enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-cet --disable-systemtap --enable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --with-isl
--disable-isl-version-check --enable-default-pie --enable-host-pie
--enable-host-bind-now --enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-host-shared
--enable-libgdiagnostics --enable-linker-build-id
--with-build-config='bootstrap-O3 bootstrap-lto bootstrap-cet'
// Thread model: posix
// Supported LTO compression algorithms: zlib zstd
// gcc version 15.3.1 20261009 (Gentoo Hardened 15.3.1_p20261009 p8) 
// 
//
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.1.2/work/libtorrent-rasterbar-2.1.2/src/torrent_handle.cpp:
In instantiation of ‘libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)> mutable [with auto:58 = {int&, bool&}]’:
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/type_traits:2782:26:  
required by substitution of ‘template<class _Fn, class ... _Args> static
std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)),
std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn =
libtorrent::torrent_handle::async_call<void (libtorrent::aux::torrent::*)(int,
bool), int&, bool>(void (libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>&; _Args = {int&, bool&}]’
//  2782 |       std::declval<_Fn>()(std::declval<_Args>()...)
//       |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/type_traits:2793:60:  
required from ‘struct std::__result_of_impl<false, false,
libtorrent::torrent_handle::async_call<void (libtorrent::aux::torrent::*)(int,
bool), int&, bool>(void (libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>&, int&, bool&>’
//  2793 |       using type = decltype(_S_test<_Functor, _ArgTypes...>(0));
//       |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/type_traits:2798:12:  
required from ‘struct
std::__invoke_result<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>&, int&, bool&>’
//  2798 |     struct __invoke_result
//       |            ^~~~~~~~~~~~~~~
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/type_traits:2812:11:  
required by substitution of ‘template<class _Fn, class ... _Args> using
std::__invoke_result_t = typename std::__invoke_result::type [with _Fn =
libtorrent::torrent_handle::async_call<void (libtorrent::aux::torrent::*)(int,
bool), int&, bool>(void (libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>&; _Args = {int&, bool&}]’
//  2812 |     using __invoke_result_t = typename __invoke_result<_Fn,
_Args...>::type;
//       |           ^~~~~~~~~~~~~~~~~
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/functional:561:8:  
required by substitution of ‘template<class _Functor, class ... _Bound_args>
template<class _Fn, class _CallArgs, class ... _BArgs> using
std::_Bind<_Functor(_Bound_args ...)>::_Res_type_impl =
std::__invoke_result_t<_Fn&, decltype (std::_Mu<typename
std::remove_cv<_BArgs>::type, std::is_bind_expression<typename
std::remove_cv<_BArgs>::type>::value, (std::is_placeholder<typename
std::remove_cv<_BArgs>::type>::value > 0)>()(declval<_BArgs&>(),
declval<_CallArgs&>()))&& ...> [with _Fn =
libtorrent::torrent_handle::async_call<void (libtorrent::aux::torrent::*)(int,
bool), int&, bool>(void (libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>; _CallArgs = std::tuple<>; _BArgs = {int, bool};
_Functor = libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>; _Bound_args = {int, bool}]’
//   561 |         using _Res_type_impl
//       |               ^~~~~~~~~~~~~~
// /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/functional:565:8:   [
skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable
]
// /usr/include/boost/asio/detail/initiate_dispatch.hpp:108:66:   required from
‘void
boost::asio::detail::initiate_dispatch_with_executor<Executor>::operator()(CompletionHandler&&,
Function&&,
boost::asio::enable_if_t<((bool)boost::asio::execution::is_executor<typename
std::conditional<true, T, P>::type>::value)>*,
boost::asio::enable_if_t<((bool)(!
boost::asio::detail::is_work_dispatcher_required<typename
std::decay<Function>::type, typename std::decay<_Func>::type,
Executor>::value))>*) const [with CompletionHandler =
std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>; Function =
boost::asio::detail::empty_work_function; Executor =
boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>;
boost::asio::enable_if_t<((bool)boost::asio::execution::is_executor<typename
std::conditional<true, T, P>::type>::value)> = void; typename
std::conditional<true, T, P>::type =
boost::asio::io_context::basic_executor_type<std::allocator<void>, 0>;
boost::asio::enable_if_t<((bool)(!
boost::asio::detail::is_work_dispatcher_required<typename
std::decay<Function>::type, typename std::decay<_Func>::type,
Executor>::value))> = void; typename std::decay<Function>::type =
boost::asio::detail::empty_work_function; typename std::decay<_Func>::type =
std::decay<std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)> >::type]’
//   108 |     boost::asio::prefer(ex_, execution::allocator(alloc)).execute(
//       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
//   109 |         boost::asio::detail::bind_handler(
//       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
//   110 |           static_cast<CompletionHandler&&>(handler)));
//       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             
// /usr/include/boost/asio/async_result.hpp:330:42:   required from ‘static
boost::asio::detail::completion_handler_async_result<CompletionToken,
Signatures>::return_type
boost::asio::detail::completion_handler_async_result<CompletionToken,
Signatures>::initiate(Initiation&&, RawCompletionToken&&, Args&& ...) [with
Initiation =
boost::asio::detail::initiate_dispatch_with_executor<boost::asio::io_context::basic_executor_type<std::allocator<void>,
0> >; RawCompletionToken =
std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>; Args =
{boost::asio::detail::empty_work_function}; CompletionToken =
std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>; Signatures = {void()}; return_type
= void]’
//   330 |     static_cast<Initiation&&>(initiation)(
//       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
//   331 |         static_cast<RawCompletionToken&&>(token),
//       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//   332 |         static_cast<Args&&>(args)...);
//       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
// /usr/include/boost/asio/async_result.hpp:683:73:   required from ‘decltype
(boost::asio::enable_if_t<((bool)typename
std::enable_if<boost::asio::detail::are_completion_signatures<TN ...>::value,
boost::asio::detail::async_result_has_initiate_memfn<CompletionToken,
Signatures ...> >::type::value), boost::asio::async_result<typename
std::decay<_Tp>::type, Signatures ...>
>::initiate(static_cast<Initiation&&>(initiation),
static_cast<CompletionToken&&>(token),
static_cast<Args&&>(boost::asio::async_initiate::args) ...))
boost::asio::async_initiate(Initiation&&, type_identity_t<CompletionToken>&,
Args&& ...) [with CompletionToken =
std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>; Signatures = {void()}; Initiation =
detail::initiate_dispatch_with_executor<io_context::basic_executor_type<std::allocator<void>,
0> >; Args = {detail::empty_work_function}; decltype
(enable_if_t<((bool)typename
std::enable_if<detail::are_completion_signatures<TN ...>::value,
detail::async_result_has_initiate_memfn<CompletionToken, Signatures ...>
>::type::value), async_result<typename std::decay<_Tp>::type, Signatures ...>
>::initiate(static_cast<Initiation&&>(initiation),
static_cast<CompletionToken&&>(token),
static_cast<Args&&>(boost::asio::async_initiate::args) ...)) = void;
enable_if_t<((bool)typename std::enable_if<detail::are_completion_signatures<TN
...>::value, detail::async_result_has_initiate_memfn<CompletionToken,
Signatures ...> >::type::value), async_result<typename std::decay<_Tp>::type,
Signatures ...> > =
async_result<std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>, void()>; typename
std::enable_if<detail::are_completion_signatures<TN ...>::value,
detail::async_result_has_initiate_memfn<CompletionToken, Signatures ...>
>::type =
detail::async_result_has_initiate_memfn<std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>, void()>; typename
std::decay<_Tp>::type =
std::decay<std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)> >::type;
type_identity_t<CompletionToken> =
type_identity<std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)> >::type]’
//   683 |   return async_result<decay_t<CompletionToken>,
Signatures...>::initiate(
//       |         
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
//   684 |       static_cast<Initiation&&>(initiation),
//       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
//   685 |       static_cast<CompletionToken&&>(token),
//       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
//   686 |       static_cast<Args&&>(args)...);
//       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                  
// /usr/include/boost/asio/dispatch.hpp:193:46:   required from ‘decltype
(async_initiate<NullaryToken,
void()>(declval<boost::asio::detail::initiate_dispatch_with_executor<typename
ExecutionContext::executor_type> >(), token,
boost::asio::detail::empty_work_function()))
boost::asio::dispatch(ExecutionContext&, NullaryToken&&,
constraint_t<((bool)std::is_convertible<ExecutionContext&,
execution_context&>::value)>) [with ExecutionContext = io_context; NullaryToken
= std::_Bind<libtorrent::torrent_handle::async_call<void
(libtorrent::aux::torrent::*)(int, bool), int&, bool>(void
(libtorrent::aux::torrent::*)(int, bool), int&, bool&&)
const::<lambda(auto:58&& ...)>(int, bool)>; decltype
(async_initiate<NullaryToken,
void()>(declval<detail::initiate_dispatch_with_executor<typename
ExecutionContext::executor_type> >(), token, detail::empty_work_function())) =
void; typename ExecutionContext::executor_type =
io_context::basic_executor_type<std::allocator<void>, 0>;
constraint_t<((bool)std::is_convertible<ExecutionContext&,
execution_context&>::value)> = int]’
//   193 |   return async_initiate<NullaryToken, void()>(
//       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
//   194 |       detail::initiate_dispatch_with_executor<
//       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//   195 |         typename
ExecutionContext::executor_type>(ctx.get_executor()),
//       |        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//   196 |       token, detail::empty_work_function());
//       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
//
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.1.2/work/libtorrent-rasterbar-2.1.2/src/torrent_handle.cpp:78:11:
  required from ‘void libtorrent::torrent_handle::async_call(Fun, Args&& ...)
const [with Fun = void (libtorrent::aux::torrent::*)(int, bool); Args = {int&,
bool}]’
//    78 |                 dispatch(ses.get_context(), std::bind([t, f,
&ses](auto&&... args) mutable
//       |                
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    79 |                 {
//       |                 ~        
//    80 | #ifndef BOOST_NO_EXCEPTIONS
//       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    81 |                         try {
//       |                         ~~~~~
//    82 | #endif
//       | ~~~~~~                   
//    83 |                                
(t.get()->*f)(std::forward<Args>(args)...);
//       |                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    84 | #ifndef BOOST_NO_EXCEPTIONS
//       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    85 |                         } catch (system_error const& e) {
//       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    86 |                                
ses.alerts().emplace_alert<torrent_error_alert>(torrent_handle(t)
//       |                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    87 |                                         , e.code(), e.what());
//       |                                         ~~~~~~~~~~~~~~~~~~~~~~
//    88 |                         } catch (std::exception const& e) {
//       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    89 |                                
ses.alerts().emplace_alert<torrent_error_alert>(torrent_handle(t)
//       |                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    90 |                                         , error_code(), e.what());
//       |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~
//    91 |                         } catch (...) {
//       |                         ~~~~~~~~~~~~~~~
//    92 |                                
ses.alerts().emplace_alert<torrent_error_alert>(torrent_handle(t)
//       |                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    93 |                                         , error_code(), "unknown
error");
//       |                                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//    94 |                         }
//       |                         ~
//    95 | #endif
//       | ~~~~~~                   
//    96 |                 }, std::forward<Args>(a)...));
//       |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.1.2/work/libtorrent-rasterbar-2.1.2/src/torrent_handle.cpp:188:13:
  required from here
//   188 |                 async_call(&aux::torrent::set_max_uploads,
max_uploads, true);
//       |                
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.1.2/work/libtorrent-rasterbar-2.1.2/src/torrent_handle.cpp:78:55:
internal compiler error: in tsubst_decl, at cp/pt.cc:15959

... so, it's either really old or introduced by a backported commit

Reply via email to