solidity/libsolidity
Rhett Aultman f3a84eab91 Error out when contracts collide on name
The previous behaviour, courtesy of the [] operator in std::map, would
uncritically store a new ContractDefinition in m_contracts even when a
ContractDefinition already existed.  This "resolved" collissions on contract
names by clobbering the original one with the new one, and could lead to
scenarios where the clobber would only be discovered when the original
ContractDefinition could not be found or referred to, which was an unhelpful
InternalCompilerError.

This change checks the m_contracts map for a collision first and will not let
the ContractDefinition be changed to a new one once it's set, throwing a
CompilerError with information about the conflict.
2017-01-16 12:32:57 -05:00
..
analysis analysis: use Declaration::functionType() in another location 2017-01-11 19:55:55 +01:00
ast ast: events have FunctionType too 2017-01-11 20:06:59 +01:00
codegen ast, codegen: enable accessing events through contract names. 2017-01-02 17:59:20 +01:00
formal Fix licensing headers 2016-11-23 12:22:33 +01:00
inlineasm Fix licensing headers 2016-11-23 12:22:33 +01:00
interface Error out when contracts collide on name 2017-01-16 12:32:57 -05:00
parsing Rename contractName to typeName when parsing new expression 2017-01-04 23:09:10 -03:00
CMakeLists.txt Rename libevmasm. 2016-08-10 13:52:24 +02:00