-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Closed
Copy link
Labels
bug 🐛should compile without errorError is reported even though it shouldn't. Source is fine.Error is reported even though it shouldn't. Source is fine.
Description
Description
Environment
- Compiler version: Version: 0.8.5-develop.2021.5.11+commit.643140e2.Linux.clang
- Target EVM version (as per compiler settings):
- Framework/IDE (e.g. Truffle or Remix):
- EVM execution environment / backend / blockchain client:
- Operating system: Linux 5.4.0-66-generic x86_64 GNU/Linux
Steps to Reproduce
Test program: small.sol
pragma experimental SMTChecker ;
contract A {
bool s ;
function f ( ) public {
assembly {
function g ( r ) -> s {
s := r
}
}
}
}Compiler Command
solc-trunk-asan_ubsan small.solOutput
Internal compiler error during compilation:
/solidity/libsolidity/formal/SMTEncoder.cpp(329): Throw in function virtual bool solidity::frontend::SMTEncoder::visit(const solidity::frontend::InlineAssembly &)
Dynamic exception type: boost::wrapexcept<solidity::langutil::InternalCompilerError>
std::exception::what: Non-local variable assigned in inlined assembly
[solidity::util::tag_comment*] = Non-local variable assigned in inlined assembly
Metadata
Metadata
Assignees
Labels
bug 🐛should compile without errorError is reported even though it shouldn't. Source is fine.Error is reported even though it shouldn't. Source is fine.
Type
Projects
Status
Done