Merge pull request #9135 from ethereum/fixReturnParameterLocation

Fixing ICE on calling externally a function that returns calldata pointers
This commit is contained in:
chriseth
2020-06-10 16:44:38 +02:00
committed by GitHub
4 changed files with 37 additions and 11 deletions
@@ -0,0 +1,12 @@
contract CalldataTest {
function test(bytes calldata x) public returns (bytes calldata) {
return x;
}
function tester(bytes calldata x) public returns (byte) {
return this.test(x)[2];
}
}
// ====
// EVMVersion: >=byzantium
// ----
// tester(bytes): 0x20, 0x08, "abcdefgh" -> "c"