We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The following snip causes an infinite recursion in emit:
struct S { int256 f1; S[] f2; } // FIXME (stack overrun in emit): function foo(S memory s) pure {} contract Foo { function bar() public { S memory s = S({ f1: 1, f2: new S[](0) }); foo(s); } }
To Reproduce
Expected behavior This is allowed in solc too, it should compile to a valid contract
solc
The text was updated successfully, but these errors were encountered:
@LucasSte found another broken example
contract Test { struct S { int foo; S[] s; } function test(int foo) public returns (S) { S ss = S(foo, new S[](2)); return ss; } }
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The following snip causes an infinite recursion in emit:
To Reproduce
Expected behavior
This is allowed in
solc
too, it should compile to a valid contractThe text was updated successfully, but these errors were encountered: