Skip to content

Instantly share code, notes, and snippets.

@fanquake
Created December 1, 2018 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanquake/0b21f286f0dc737295e4e6172274eca0 to your computer and use it in GitHub Desktop.
Save fanquake/0b21f286f0dc737295e4e6172274eca0 to your computer and use it in GitHub Desktop.
rapidcheck compile failures
CXX test/test_bitcoin-coins_tests.o
In file included from test/gen/block_gen.cpp:1:
In file included from ./test/gen/block_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<COutPoint>()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<0, const COutPoint &, false>::__tuple_leaf<COutPoint, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2>, const COutPoint &, const CScript &, unsigned int>::__tuple_impl<std::__1::tuple<COutPoint, CScript, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<const COutPoint &, const CScript &, unsigned int>::tuple<std::__1::tuple<COutPoint, CScript, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTxIn>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::Gen<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:58:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>' requested here
return gen::map(gen::tuple(gen::arbitrary<COutPoint>(), gen::arbitrary<CScript>(), gen::arbitrary<uint32_t>()), [](const std::tuple<const COutPoint&, const CScript&, uint32_t>& primitives) {
^
In file included from test/gen/block_gen.cpp:1:
In file included from ./test/gen/block_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<CScript>()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<1, const CScript &, false>::__tuple_leaf<CScript, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2>, const COutPoint &, const CScript &, unsigned int>::__tuple_impl<std::__1::tuple<COutPoint, CScript, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<const COutPoint &, const CScript &, unsigned int>::tuple<std::__1::tuple<COutPoint, CScript, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTxIn>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::Gen<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:58:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>' requested here
return gen::map(gen::tuple(gen::arbitrary<COutPoint>(), gen::arbitrary<CScript>(), gen::arbitrary<uint32_t>()), [](const std::tuple<const COutPoint&, const CScript&, uint32_t>& primitives) {
^
In file included from test/gen/block_gen.cpp:1:
In file included from ./test/gen/block_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > >()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<1, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, false>::__tuple_leaf<std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3>, int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::__tuple_impl<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::tuple<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTransaction>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::Gen<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:95:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>' requested here
return gen::map(gen::tuple(gen::arbitrary<int32_t>(),
^
In file included from test/gen/block_gen.cpp:1:
In file included from ./test/gen/block_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > >()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<2, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, false>::__tuple_leaf<std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3>, int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::__tuple_impl<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::tuple<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTransaction>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::Gen<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:95:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>' requested here
return gen::map(gen::tuple(gen::arbitrary<int32_t>(),
^
4 errors generated.
make[2]: *** [test/gen/test_bitcoin-block_gen.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from test/gen/transaction_gen.cpp:1:
In file included from ./test/gen/transaction_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<COutPoint>()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<0, const COutPoint &, false>::__tuple_leaf<COutPoint, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2>, const COutPoint &, const CScript &, unsigned int>::__tuple_impl<std::__1::tuple<COutPoint, CScript, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<const COutPoint &, const CScript &, unsigned int>::tuple<std::__1::tuple<COutPoint, CScript, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTxIn>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::Gen<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:58:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>' requested here
return gen::map(gen::tuple(gen::arbitrary<COutPoint>(), gen::arbitrary<CScript>(), gen::arbitrary<uint32_t>()), [](const std::tuple<const COutPoint&, const CScript&, uint32_t>& primitives) {
^
In file included from test/gen/transaction_gen.cpp:1:
In file included from ./test/gen/transaction_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<CScript>()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<1, const CScript &, false>::__tuple_leaf<CScript, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2>, const COutPoint &, const CScript &, unsigned int>::__tuple_impl<std::__1::tuple<COutPoint, CScript, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<const COutPoint &, const CScript &, unsigned int>::tuple<std::__1::tuple<COutPoint, CScript, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTxIn>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTxIn>::Gen<rc::gen::detail::MapGen<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:58:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<COutPoint, CScript, unsigned int>, (lambda at ./test/gen/transaction_gen.h:58:121)>' requested here
return gen::map(gen::tuple(gen::arbitrary<COutPoint>(), gen::arbitrary<CScript>(), gen::arbitrary<uint32_t>()), [](const std::tuple<const COutPoint&, const CScript&, uint32_t>& primitives) {
^
In file included from test/gen/transaction_gen.cpp:1:
In file included from ./test/gen/transaction_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > >()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<1, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, false>::__tuple_leaf<std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3>, int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::__tuple_impl<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::tuple<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTransaction>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::Gen<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:95:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>' requested here
return gen::map(gen::tuple(gen::arbitrary<int32_t>(),
^
In file included from test/gen/transaction_gen.cpp:1:
In file included from ./test/gen/transaction_gen.h:4:
In file included from ./test/gen/crypto_gen.h:4:
In file included from ./key.h:10:
In file included from ./pubkey.h:10:
In file included from ./hash.h:11:
In file included from ./crypto/sha256.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:662:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:227:10: error: static_assert failed due to requirement '__can_bind_reference<std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > >()' "Attempted to construct a reference element in a tuple with an rvalue"
{static_assert(__can_bind_reference<_Tp>(),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:411:15: note: in instantiation of function template specialization 'std::__1::__tuple_leaf<2, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, false>::__tuple_leaf<std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, void>' requested here
: __tuple_leaf<_Indx, _Tp>(_VSTD::forward<typename tuple_element<_Indx,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:828:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3>, int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::__tuple_impl<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, void>' requested here
: __base_(_VSTD::forward<_Tuple>(__t)) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/shrinkable/Transform.hpp:20:37: note: in instantiation of function template specialization 'std::__1::tuple<int, const std::__1::vector<CTxIn, std::__1::allocator<CTxIn> > &, const std::__1::vector<CTxOut, std::__1::allocator<CTxOut> > &, unsigned int>::tuple<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, false>' requested here
U value() const { return m_mapper(m_shrinkable.value()); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:26:44: note: in instantiation of member function 'rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::value' requested here
T value() const override { return m_impl.value(); }
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:22:12: note: in instantiation of member function 'rc::Shrinkable<CTransaction>::ShrinkableImpl<rc::shrinkable::detail::MapShrinkable<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::value' requested here
explicit ShrinkableImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Shrinkable.hpp:101:27: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
shrinkable.m_impl = new ShrinkableImpl(std::forward<Args>(args)...);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:39:12: note: in instantiation of member function 'rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>::operator()' requested here
return m_impl(random, size);
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:34:3: note: in instantiation of member function 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::generate' requested here
GenImpl(Args &&... args)
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/Gen.hpp:58:18: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >::GenImpl<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)> >' requested here
: m_impl(new GenImpl<Decay<Impl>>(std::forward<Impl>(impl))) {}
^
/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.2.0/share/../include/rapidcheck/gen/Transform.hpp:78:10: note: in instantiation of function template specialization 'rc::Gen<CTransaction>::Gen<rc::gen::detail::MapGen<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>, void>' requested here
return detail::MapGen<T, Decay<Mapper>>(std::move(gen),
^
./test/gen/transaction_gen.h:95:21: note: in instantiation of function template specialization 'rc::gen::map<std::__1::tuple<int, std::__1::vector<CTxIn, std::__1::allocator<CTxIn> >, std::__1::vector<CTxOut, std::__1::allocator<CTxOut> >, unsigned int>, (lambda at ./test/gen/transaction_gen.h:97:13)>' requested here
return gen::map(gen::tuple(gen::arbitrary<int32_t>(),
^
4 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment