Open cameel opened 4 years ago
Managed to reproduce it with solc
by enabling the optimizer. So it's not just a soltest thing. Description and title updated.
Also, this error happens only on 0.7.2 and in develop. It does not happen on 0.7.1.
We generally ignore stack too deep errors. But this one might be a bit interesting. If it's not happening in 0.7.1, then it's likely that this is because of the change in order of inlining that was introduced in 0.7.2. If this is true, then there isn't much that we can do here.
I'm seeing that error in 0.8.3. Any clue what is causing that ?
@Amxx try to reduce the number of parameters for your function.
@Amxx try to reduce the number of parameters for your function.
Yes that was it. To many calldata arrays in parameter. Replacing them with an array of structures (or a structures with arrays) seems to fix it.
The error message is really unclear (and doesn't point out the function causing the issue). You may want to clarify things
We can hopefully fix this altogether soon.
Steps to Reproduce
It happens only when using the optimizer
Without the optimizer it compiles just fine.
Running it as a soltest test case gives a bit more info about where the exception is raised:
Environment