Disallow comparison for reference types.

Fixes #2690
This commit is contained in:
chriseth 2015-08-06 15:39:42 +02:00
parent ab33328d1f
commit b1563878b6

View File

@ -409,6 +409,10 @@ public:
DataLocation location() const { return m_location; }
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override;
virtual TypePointer binaryOperatorResult(Token::Value, TypePointer const&) const override
{
return TypePointer();
}
virtual unsigned memoryHeadSize() const override { return 32; }
/// @returns a copy of this type with location (recursively) changed to @a _location,