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

Internal compiler error during index access to library type #5722

Closed
zhongyinglou opened this issue Dec 24, 2018 · 2 comments
Closed

Internal compiler error during index access to library type #5722

zhongyinglou opened this issue Dec 24, 2018 · 2 comments
Assignees
Labels
Projects

Comments

@zhongyinglou
Copy link

@zhongyinglou zhongyinglou commented Dec 24, 2018

2.zip

Internal compiler error during compilation:
solidity/libsolidity/codegen/ExpressionCompiler.cpp(1526): Throw in function virtual bool dev::solidity::ExpressionCompiler::visit(const dev::solidity::IndexAccess&)
Dynamic exception type: boost::exception_detail::clone_impl<langutil::InternalCompilerError>
std::exception::what: 
[dev::tag_comment*] = 
@axic axic added the bug 🐛 label Jan 2, 2019
@chriseth
Copy link
Contributor

@chriseth chriseth commented Jan 7, 2019

Simplified input to:

library C {
    function f() view public {
        C[0]; 
    }
}

@chriseth chriseth changed the title Dealing with malformed input sol files, compiler will throw a "Unknown exception " in feature function cause solidity compiler crash. Internal compiler error during index access Jan 7, 2019
@chriseth chriseth changed the title Internal compiler error during index access Internal compiler error during index access to library type Jan 7, 2019
@chriseth
Copy link
Contributor

@chriseth chriseth commented Jan 7, 2019

This type of index access should of course be disallowed in TypeChecker::visit(IndexAccess.

@erak erak self-assigned this Feb 21, 2019
@erak erak added this to To do in 0.5.5 via automation Feb 25, 2019
@erak erak moved this from To do to In progress in 0.5.5 Feb 25, 2019
0.5.5 automation moved this from In progress to Done Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
0.5.5
  
Done
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants