Skip to content
New issue

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

Creating a contract from within itself is not caught properly #63

Closed
chriseth opened this issue Sep 10, 2015 · 0 comments · Fixed by #65
Closed

Creating a contract from within itself is not caught properly #63

chriseth opened this issue Sep 10, 2015 · 0 comments · Fixed by #65
Assignees
Labels

Comments

@chriseth
Copy link
Contributor

Creating a contract from within itself is not possible since it would have to include its own code:

contract C { function f() { var x = new C(); } }

(there might be workarounds to make this possible, but we do not allow it for now)

The error, though, is not caught at the analysis phase, but only at code generation phase and results in an internal compiler error.

@LianaHus LianaHus self-assigned this Sep 10, 2015
yanghang8612 added a commit to yanghang8612/solidity that referenced this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants