From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79373385840D; Tue, 9 Apr 2024 06:16:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79373385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712643396; bh=dgJZfiAW7vQdkB0cX8UCtImzt5tz6R2MpGs7VPmwzF8=; h=From:To:Subject:Date:From; b=BnZDyPgyl1aMGzxvlauFZ3CtnT4kzGXl0iqh2OnXBmavpCZZkXDdO7Pkw00tOUQVE xfvG5KfuHB5e3zklH3r+BIxpLM+p5ZBJNOvT1k5xrCGMm1pZtaTmdkOXU5zfyJr0zd CWUcKGr4BcZGloont+IMbVKJCIySB888FBLTBNKs= From: "yuri at tsoft dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114652] New: g++ fails to compile the ceres-solver-2.2.0 project: error: use of built-in trait '__remove_cvref(_Tp)' in function signature; use library traits instead Date: Tue, 09 Apr 2024 06:16:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yuri at tsoft dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114652 Bug ID: 114652 Summary: g++ fails to compile the ceres-solver-2.2.0 project: error: use of built-in trait '__remove_cvref(_Tp)' in function signature; use library traits instead Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yuri at tsoft dot com Target Milestone: --- Command and error: /usr/local/bin/g++13 -DCERES_SUITESPARSE_VERSION=3D\"7.6.1\" -DEIGEN_MPL2_O= NLY -DGFLAGS_IS_A_DLL=3D0 -DGLOG_USE_GFLAGS -DGLOG_USE_GLOG_EXPORT -Dceres_EXPO= RTS -I/wrkdirs/usr/ports/math/ceres-solver/work/ceres-solver-2.2.0/include -I/wrkdirs/usr/ports/math/ceres-solver/work/ceres-solver-2.2.0/internal -I/wrkdirs/usr/ports/math/ceres-solver/work/.build/include -I/usr/local/include/suitesparse -I/usr/local/include/eigen3 -O2 -pipe=20 -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc13 -stdlib=3Dlibc++ -Wl,-rpath=3D/usr/local/lib/gcc13 -isystem /usr/local/include=20 -Wmissing-declarations -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -O2 -pipe=20 -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc13 -stdlib=3Dlibc++ -Wl,-rpath=3D/usr/local/lib/gcc13 -isystem /usr/local/include -DNDEBUG -fP= IC -fvisibility=3Dhidden -fvisibility-inlines-hidden -pthread -MD -MT internal/ceres/CMakeFiles/ceres_internal.dir/parameter_block_ordering.cc.o = -MF internal/ceres/CMakeFiles/ceres_internal.dir/parameter_block_ordering.cc.o.= d -o internal/ceres/CMakeFiles/ceres_internal.dir/parameter_block_ordering.cc.o = -c /wrkdirs/usr/ports/math/ceres-solver/work/ceres-solver-2.2.0/internal/ceres= /parameter_block_ordering.cc In file included from /usr/include/c++/v1/__algorithm/copy_move_common.h:12, from /usr/include/c++/v1/__algorithm/copy.h:12, from /usr/include/c++/v1/__memory/uninitialized_algorithms.h:13, from /usr/include/c++/v1/__memory/ranges_uninitialized_algorithms.h:22, from /usr/include/c++/v1/memory:896, from /wrkdirs/usr/ports/math/ceres-solver/work/ceres-solver-2.2.0/internal/ceres= /parameter_block_ordering.h:34, from /wrkdirs/usr/ports/math/ceres-solver/work/ceres-solver-2.2.0/internal/ceres= /parameter_block_ordering.cc:31: /usr/include/c++/v1/__algorithm/iterator_operations.h: In instantiation of 'static constexpr std::__1::__remove_cvref_t<_Tp> std::__1::_IterOps::prev(_Iter&&, typename std::__1::iterator_traits<__remove_cvref(_Tp)>::difference_type) [with _Ite= r =3D std::__1::__wrap_iter&]': /usr/include/c++/v1/__algorithm/iterator_operations.h:161:27: error: use of built-in trait '__remove_cvref(_Tp)' in function signature; use library tra= its instead 161 | __remove_cvref_t<_Iter> prev(_Iter&& __iter, | ^~~~ /usr/include/c++/v1/__algorithm/iterator_operations.h: In instantiation of 'static constexpr std::__1::__remove_cvref_t<_Tp> std::__1::_IterOps::next(_Iter&&, typename std::__1::iterator_traits<__remove_cvref(_Tp)>::difference_type) [with _Ite= r =3D std::__1::__wrap_iter&]': /usr/include/c++/v1/__algorithm/iterator_operations.h:153:27: error: use of built-in trait '__remove_cvref(_Tp)' in function signature; use library tra= its instead 153 | __remove_cvref_t<_Iter> next(_Iter&& __it, | ^~~~ Log: https://pkg-status.freebsd.org/ampere3/data/140releng-armv7-default/26c5fe5= d2fe6/logs/ceres-solver-2.2.0_8.log OS: FreeBSD 14.0=