AST reimport fails for inline assembly with uninitialized variable declarations #13684
Labels
bug 🐛
low effort
There is not much implementation work to be done. The task is very easy or tiny.
low impact
Changes are not very noticeable or potential benefits are limited.
must have eventually
Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.
should compile without error
Error is reported even though it shouldn't. Source is fine.
An attempt to import an AST produced by the compiler fails when the original source code contains an inline assembly block with a variable declaration without an initializer:
test.sol
solc test.sol --combined-json ast | solc --import-ast -
This is reproducible all the way down to 0.6.2, when the
--import-ast
option was introduced, though before 0.8.0 the error message was different and it seems to be failing for a different reason (even examples that work on 0.8.x fail on those versions)Discovered by @aart in #13576 (comment).
The text was updated successfully, but these errors were encountered: