argotorg / argotorg/solidity

`You shall not have another CompilerStack aside me` error in Remix when compiling with 0.5.9

Open
#15,052 1 comment 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

## Description
I used the 0.5.9 compiler in Remix to compile the program with an error, but I was able to successfully compile using binary solc

## Environment

- Compiler version: 0.5.9
- Target EVM version (as per compiler settings): None
- Framework/IDE (e.g. Truffle or Remix):
- EVM execution environment / backend / blockchain client: Remix, Command-Line
- Operating system: Linux

## Steps to Reproduce

```solidity
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;

contract test {
uint[2][] public originalData;
uint[2][] public decodedData;
function encodeData() public returns (uint) {

originalData.push([1, 2]);
originalData.push([3, 4]);
originalData.push([5, 6]);

bytes memory encodedData=abi.encode(originalData);

decodedData = abi.decode(encodedData, (uint[2][]));

return decodedData[1][1];
}
}
```

### Remix
![1713969976519](https://github.com/ethereum/solidity/assets/147013944/2b9d0d78-57d0-4a84-809e-1e5e8dcdf968)
![1713969986986](https://github.com/ethereum/solidity/assets/147013944/3962465e-068f-404a-9e1b-6229066795cd)

### Command
```bash
solc-0509 test.sol --bin
```
Successfully obtained bytecode

Contributor guide

Open the contributing guide

Research direction

Start by compiling the provided Solidity contract with compiler version 0.5.9 through Remix and with `solc-0509 test.sol --bin`, then compare the differing results. Investigate the `You shall not have another CompilerStack aside me` error and confirm that the behavior is consistent across both compilation paths; done means the discrepancy is explained and the failing path is corrected or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.