Open
Description
Search before asking
- I searched in the issues and found nothing similar.
Version
pulsar-client-cpp 3.6.0
gcc 8.3.1
linux: centos7.9
Minimal reproduce step
just build
What did you expect to see?
build success
What did you see instead?
[ 83%] Building CXX object tests/CMakeFiles/pulsar-tests.dir/TypedMessageTest.cc.o
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/move.h:55,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_pair.h:59,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_algobase.h:64,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/char_traits.h:39,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:40,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/locale_classes.h:40,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/ios_base.h:41,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/iomanip:40,
from /data/home/jianghz/workspace/pulsar-client-cpp/build/vcpkg_installed/x64-linux/include/gtest/gtest.h:54,
from /data/home/jianghz/workspace/pulsar-client-cpp/tests/TypedMessageTest.cc:19:
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits: In 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 = TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&; _Args = {pulsar::Result, const pulsar::Message&}]’:
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2294:55: required from ‘struct std::__result_of_impl<false, false, TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&, pulsar::Result, const pulsar::Message&>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2299:12: required from ‘struct std::__invoke_result<TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&, pulsar::Result, const pulsar::Message&>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2312:12: required from ‘class std::result_of<TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>&(pulsar::Result, const pulsar::Message&)>’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/std_function.h:445:9: required by substitution of ‘template<class _Functor, class, class> std::function<void(pulsar::Result, const pulsar::Message&)>::function(_Functor) [with _Functor = TypedMessageTest_testReceive_Test::TestBody()::<lambda(pulsar::Result, const pulsar::TypedMessage<int>&)>; <template-parameter-1-2> = void; <template-parameter-1-3> = <missing>]’
/data/home/jianghz/workspace/pulsar-client-cpp/tests/TypedMessageTest.cc:76:18: required from here
/opt/rh/devtoolset-8/root/usr/include/c++/8/type_traits:2283:26: internal compiler error: Segmentation fault
std::declval<_Fn>()(std::declval<_Args>()...)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Anything else?
no
Are you willing to submit a PR?
- I'm willing to submit a PR!
Metadata
Metadata
Assignees
Labels
No labels