POL Price: $0.700393 (-1.32%)

Solidity Bug Info

Bug Name Description Severity
FreeFunctionRedefinition
The compiler does not flag an error when two or more free functions with the same name and parameter types are defined in a source unit or when an imported free function alias shadows another free function with a different name but identical parameter types.
In contrast to functions defined inside contracts, free functions with identical names and parameter types did not create an error. Both definition of free functions with identical name and parameter types and an imported free function with an alias that shadows another function with a different name but identical parameter types were permitted due to which a call to either the multiply defined free function or the imported free function alias within a contract led to the execution of that free function which was defined first within the source unit. Subsequently defined identical free function definitions were silently ignored and their code generation was skipped.

- First Introduced: 0.7.1
- Fixed in Version: 0.7.2
- Published:
- Severity<: low

low