Better "stack too deep" errors
- Dominant language
- C++
- Stars
- 25.7k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 21
Description
## Abstract
```
Compiling 106 files with 0.8.11
CompilerError: Stack too deep when compiling inline assembly: Variable dataEnd is 1 slot(s) too deep inside the stack.
```
CompilerError does not mention the location where the problem is (or at least any hints where the problem could be).
## Motivation
I have a huge project, removed a parameter from a bunch of functions now the project doesn't compile and not sure where to look.
## Specification
If it tells which file / function causes this issue, or any hints it would be helpful.
## Backwards Compatibility
None
Contributor guide
Research direction
The issue names no source files, tests, or compiler entry points; it only identifies the inline-assembly "stack too deep" diagnostic, CompilerError, and variable dataEnd. Start by reproducing the error with the reported Solidity 0.8.11 project or a reduced example, then trace how the compiler reports the error. Done means the diagnostic identifies the relevant file and function or provides useful location hints.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, solidity
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100