mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6a6bf303b5
This one is more obscure. It helps suppressing the following error while compiling: ``` /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:6: error: elaborated-type-specifier for a scoped enum must not use the 'class' keyword [-Werror] 33 | enum class Instruction: uint8_t; | ~~~~ ^~~~~ | ----- /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:23: error: found ':' in nested-name-specifier, expected '::' 33 | enum class Instruction: uint8_t; | ^ | :: /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:33:12: error: 'Instruction' has not been declared 33 | enum class Instruction: uint8_t; | ^~~~~~~~~~~ /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:101:24: error: 'solidity::evmasm::Instruction' has not been declared 101 | bool hasOpcode(evmasm::Instruction _opcode) const; | ^~~~~~ /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.cpp:29:6: error: no declaration matches 'bool solidity::langutil::EVMVersion::hasOpcode(solidity::evmasm::Instruction) const' 29 | bool EVMVersion::hasOpcode(Instruction _opcode) const | ^~~~~~~~~~ /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:101:14: note: candidate is: 'bool solidity::langutil::EVMVersion::hasOpcode(int) const' 101 | bool hasOpcode(evmasm::Instruction _opcode) const; | ^~~~~~~~~ /builddir/build/BUILD/solidity-0.8.18/liblangutil/EVMVersion.h:43:7: note: 'class solidity::langutil::EVMVersion' defined here 43 | class EVMVersion: | ^~~~~~~~~~ cc1plus: all warnings being treated as errors ``` Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> |
||
---|---|---|
.. | ||
CharStream.cpp | ||
CharStream.h | ||
CharStreamProvider.h | ||
CMakeLists.txt | ||
Common.h | ||
DebugInfoSelection.cpp | ||
DebugInfoSelection.h | ||
ErrorReporter.cpp | ||
ErrorReporter.h | ||
EVMVersion.cpp | ||
EVMVersion.h | ||
Exceptions.cpp | ||
Exceptions.h | ||
ParserBase.cpp | ||
ParserBase.h | ||
Scanner.cpp | ||
Scanner.h | ||
SemVerHandler.cpp | ||
SemVerHandler.h | ||
SourceLocation.cpp | ||
SourceLocation.h | ||
SourceReferenceExtractor.cpp | ||
SourceReferenceExtractor.h | ||
SourceReferenceFormatter.cpp | ||
SourceReferenceFormatter.h | ||
Token.cpp | ||
Token.h | ||
UniqueErrorReporter.h |