Revert "Disallow RETURNDATASIZE and RETURNDATACOPY in inline assembly blocks in pure functions"

This reverts commit f567eb1fb2.

Correcting Bugfixes section of Changelog.
This commit is contained in:
Matheus Aguiar
2022-05-13 08:35:21 -03:00
parent aafda389ea
commit 35661479b6
9 changed files with 34 additions and 42 deletions
@@ -1,5 +1,5 @@
contract C {
function f() view external {
function f() pure external {
assembly {
let s := returndatasize()
returndatacopy(0, 0, s)
@@ -1,5 +1,5 @@
contract C {
function f() view external {
function f() pure external {
assembly {
let s := returndatasize()
returndatacopy(0, 0, s)
@@ -1,5 +1,5 @@
contract C {
function f() public view {
function f() public pure {
uint returndatasize;
returndatasize;
assembly {
@@ -1,5 +1,5 @@
contract C {
function f() public view {
function f() public pure {
uint returndatasize;
returndatasize;
assembly {
@@ -1,4 +1,4 @@
contract C { function f() public view { uint returndatasize; returndatasize; assembly { pop(returndatasize()) }}}
contract C { function f() public pure { uint returndatasize; returndatasize; assembly { pop(returndatasize()) }}}
// ====
// EVMVersion: =homestead
// ----