Skip to content

deprecated-copy warnings with GCC 11 #109

Description

@Hailios

using boost log causes warnings inside phoenix. since everything includes the logger, everything also gets this warning when compiling.

.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/phoenix/core/actor.hpp: In instantiation of 'static boost::log::v2s_mt_posix::expressions::aux::make_output_actor<ActorT<LeftExprT>, RightT, ValueT, false>::type boost::log::v2s_mt_posix::expressions::aux::make_output_actor<ActorT<LeftExprT>, RightT, ValueT, false>::make(const ActorT<LeftExprT>&, const RightT&) [with ActorT = boost::phoenix::actor; LeftExprT = boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0>; RightT = boost::log::v2s_mt_posix::expressions::attribute_actor<boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, void, boost::phoenix::actor>; ValueT = boost::log::v2s_mt_posix::trivial::severity_level; boost::log::v2s_mt_posix::expressions::aux::make_output_actor<ActorT<LeftExprT>, RightT, ValueT, false>::type = boost::phoenix::actor<boost::log::v2s_mt_posix::expressions::aux::attribute_output_terminal<boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun<void> > >]':
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/detail/generate_overloads.hpp:27:1:   required from 'typename boost::log::v2s_mt_posix::expressions::aux::make_output_actor<boost::phoenix::actor<Expr>, boost::log::v2s_mt_posix::expressions::attribute_actor<T, FallbackPolicyT, TagT, boost::phoenix::actor> >::type boost::log::v2s_mt_posix::expressions::operator<<(const boost::phoenix::actor<Expr>&, boost::log::v2s_mt_posix::expressions::attribute_actor<T, FallbackPolicyT, TagT, boost::phoenix::actor>&&) [with LeftExprT = boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0>; T = boost::log::v2s_mt_posix::trivial::severity_level; FallbackPolicyT = boost::log::v2s_mt_posix::fallback_to_none; TagT = void; typename boost::log::v2s_mt_posix::expressions::aux::make_output_actor<boost::phoenix::actor<Expr>, boost::log::v2s_mt_posix::expressions::attribute_actor<T, FallbackPolicyT, TagT, boost::phoenix::actor> >::type = boost::phoenix::actor<boost::log::v2s_mt_posix::expressions::aux::attribute_output_terminal<boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun<void> > >; typename boost::log::v2s_mt_posix::expressions::attribute_actor<T, FallbackPolicyT, TagT, boost::phoenix::actor>::value_type = boost::log::v2s_mt_posix::trivial::severity_level]'
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/utility/setup/formatter_parser.hpp:108:51:   required from
 'boost::log::v2s_mt_posix::basic_formatter_factory<CharT, AttributeValueT>::formatter_type boost::log::v2s_mt_posix::basic_formatter_factory<CharT, AttributeValueT>::create_formatter(const boost::log::v2s_mt_posix::attribute_name&, const args_map&) [with CharT = char; AttributeValueT = boost::log::v2s_mt_posix::trivial::severity_level; boost::log::v2s_mt_posix::basic_formatter_factory<CharT, AttributeValueT>::formatter_type = boost::log::v2s_mt_posix::basic_formatter<char>; boost::log::v2s_mt_posix::basic_formatter_factory<CharT, AttributeValueT>::args_map = std::map<std::basic_string<char>, std::basic_string<char> >]'
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/utility/setup/formatter_parser.hpp:106:20:   required from here
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/phoenix/core/actor.hpp:133:12: warning: implicitly-declared 'boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::log::v2s_mt_posix::expressions::aux::attribute_output_terminal<boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun<void> > >, 0>::expr(const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::log::v2s_mt_posix::expressions::aux::attribute_output_terminal<boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::phoenix::argument<2> >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun<void> > >, 0>&)' is deprecated [-Wdeprecated-copy]
$ /opt/rh/devtoolset-11/root/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/opt/rh/devtoolset-11/root/bin/g++
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-11/root/usr --mandir=/opt/rh/devtoolset-11/root/usr/share/man --infodir=/opt/rh/devtoolset-11/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.2.1-20220127/obj-x86_64-redhat-linux/isl-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions