Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Compile error: Block.cpp:103:11: error: explicitly assigning value of variable of type 'dev::eth::Block' to itself #5578

Open
lrettig opened this issue Apr 25, 2019 · 1 comment
Labels

Comments

@lrettig
Copy link
Contributor

lrettig commented Apr 25, 2019

I'm trying to compile v1.5.1 (linked in the hera circleci file) on OS X using clang version 10.0.1:

Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix

[ 78%] Building CXX object test/CMakeFiles/testeth.dir/unittests/libethereum/Block.cpp.o
aleth/test/unittests/libethereum/Block.cpp:103:11: error: explicitly
      assigning value of variable of type 'dev::eth::Block' to itself
      [-Werror,-Wself-assign-overloaded]
    block = block;
    ~~~~~ ^ ~~~~~
1 error generated.
make[2]: *** [test/CMakeFiles/testeth.dir/unittests/libethereum/Block.cpp.o] Error 1
@lrettig
Copy link
Contributor Author

lrettig commented Apr 25, 2019

1.6.0 built okay for me, feel free to close if you don't care about 1.5.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants