mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Disallowed special case of bytes0 arrays.
This commit is contained in:
		
							parent
							
								
									2cde4f3404
								
							
						
					
					
						commit
						90c519d08f
					
				| @ -184,6 +184,8 @@ TypePointer Type::fromArrayTypeName(TypeName& _baseTypeName, Expression* _length | ||||
| 	TypePointer baseType = _baseTypeName.toType(); | ||||
| 	if (!baseType) | ||||
| 		BOOST_THROW_EXCEPTION(_baseTypeName.createTypeError("Invalid type name.")); | ||||
| 	if (baseType->getStorageBytes() == 0) | ||||
| 		BOOST_THROW_EXCEPTION(_baseTypeName.createTypeError("Illegal base type of storage size zero for array.")); | ||||
| 	if (_length) | ||||
| 	{ | ||||
| 		if (!_length->getType()) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user