argotorg / argotorg/solidity

solc --gas outputs nothing

Open
#15,219 2 comments 0 reactions 0 assignees View on GitHub
bug :bug: low effort low impact should have
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

## Description

Just as the title mentioned, `solc --gas` does not output a gas esitimation.
## Environment

- Compiler version: 0.8.27-develop.2024.6.25+commit.ce4be6e1.Darwin.appleclang
- Operating system: Macos M2 Sonoma 14.5

## Steps to Reproduce

```solidity
pragma solidity ^0.8.0;

contract Test {
uint[] array;

function testGasEstimation() public {
array.push(1);
}
}
```
Execute the above example and the output is
```
Warning: This is a pre-release compiler version, please do not use it in production.

Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
```
No gas estimation found.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the issue with solc --gas and the supplied Solidity contract, then trace the compiler's gas-reporting path; done means the command prints a gas estimation for the contract.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, solidity
Domain
cli, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.