solidity
solidity copied to clipboard
Segmentation fault when assigning to a parenthesized non-tuple expression of a tuple type
Environment
- Compiler version: 0.8.25
- Target EVM version (as per compiler settings): None
- Framework/IDE (e.g. Truffle or Remix): None
- EVM execution environment / backend / blockchain client: Command
- Operating system: Linux
Steps to Reproduce
contract A {
function f ( ) internal virtual {
( ( f() ) -= f() ) [ f() ] ;
}
}
Segmentation fault
Hi @Subway2023 thanks for opening the issue. We are indeed incorrectly detecting assignments to empty tuple expressions. I opened a PR to fix it ;)
A simpler reproduction of the bug would be:
contract C {
function f() {
(f()) = ();
}
}