Comments (2)
Note that this works in
--via-ir
.
Good to know! This is much easier and via-ir
no longer takes 45 minutes to build files. However, is there any reason why this feature couldn't be available without IR?
from solidity.
Note that this works in --via-ir
.
Minimized (from @lum7na in foundry-rs/foundry#7085):
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
contract C {
struct S {
bool anything;
}
S[] s;
function f() external {
s = new S[](0);
}
}
Full error:
Unimplemented feature:
/solidity/libsolidity/codegen/ArrayUtils.cpp(227): Throw in function solidity::frontend::ArrayUtils::copyArrayToStorage(const solidity::frontend::ArrayType&, const solidity::frontend::ArrayType&) const::<lambda(solidity::frontend::CompilerContext&)>
Dynamic exception type: boost::wrapexcept<solidity::langutil::UnimplementedFeatureError>
std::exception::what: Copying of type struct C.S memory[] memory to storage not yet supported.
[solidity::util::tag_comment*] = Copying of type struct C.S memory[] memory to storage not yet supported.
from solidity.
Related Issues (20)
- `Assembly exception for bytecode` occurs when compiling with via-ir
- Overflow operations are not detected when enabling via-ir compilation HOT 1
- SMTChecker: Z3 in CHC engine incorrectly determines assertion as safe, when it should report possible violation
- Unknown EVM memory space while function returns a memory array. HOT 1
- Public function is not visible outside of the contract. HOT 4
- Adjust documentation webpage layout to be compatible with RTD addons HOT 2
- smart contracts need to process AI related processing on chain and also on contract
- Signed int256 addition optimization HOT 1
- No Documentation Available for compiling from source on ARM machine HOT 1
- Poor optimization of `call` and `staticcall` with `--via-ir` HOT 3
- Stack too deep compiler error when no variable are pushed to the stack.
- `Assembly exception for bytecode` occurs when code contains immutable state variables
- Unclear documentation for bytes encoding HOT 2
- SMT logic error: sorts are incompatible HOT 2
- Refine and Stabilize EOF Support
- FundsFreeze.sol
- White error output is invisible on white terminals
- type().max min should work with user defined types that are mapped to scalar types
- User defined value type with operators and/or forward references or aliases for types in libraries
- for loop i=9;i>=0;i-- execution reverted: arithmetic underflow or overflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidity.