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

Comments

Projects
4 participants
@zhongyinglou
Copy link

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

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
You can’t perform that action at this time.